Lines Matching full:endianness
5 * Check if thread endianness is flipped inadvertently to BE on trap
10 * and load_vec and then causing a trap in TM. Since the endianness
21 * to zero which determines a BE endianness that is the native
22 * endianness on BE machines, so nothing notably critical happens,
25 * it on BE machines LE endianness is forced after a first trap and then
26 * the endianness is verified on subsequent traps to determine if the
27 * endianness "flipped back" to the native endianness (BE).
66 /* Get thread endianness: extract bit LE from MSR */ in trap_signal_handler()
77 * event that endianness is flipped by the bug, so just in trap_signal_handler()
79 * check on the second trap event if endianness is in trap_signal_handler()
87 * endianness was still LE (not flipped inadvertently) in trap_signal_handler()
91 * LE endianness does in effect nothing, instruction (2) in trap_signal_handler()
95 * the return from the signal handler the endianness in- in trap_signal_handler()
101 * once in the trap handler to verify if endianness was in trap_signal_handler()
103 * event. If endianness is flipped, the bug is present. in trap_signal_handler()
119 * Thread endianness is BE, so it flipped in trap_signal_handler()
137 * Force thread endianness to be LE. Instructions (1), in trap_signal_handler()
147 * second trap event endianness will flip back "automat- in trap_signal_handler()
148 * ically" to BE, otherwise thread endianness will in trap_signal_handler()
158 * endianness is still LE as set on return from the in trap_signal_handler()
200 * [NA] means "Native Endianness", i.e. it tells how a in ping()
201 * instruction is executed on machine's native endianness (in in ping()
202 * other words, native endianness matches kernel endianness). in ping()
203 * [OP] means "Opposite Endianness", i.e. on a BE machine, it in ping()
291 /* Figure out the machine endianness */ in tm_trap_test()
294 printf("%s machine detected. Checking if endianness flips %s", in tm_trap_test()
323 printf("no.\n"); /* no, endianness did not flip inadvertently */ in tm_trap_test()
327 printf("yes!\n"); /* yes, endianness did flip inadvertently */ in tm_trap_test()