* Parity calculation is endian insensitive. */
| 117 | * Parity calculation is endian insensitive. |
| 118 | */ |
| 119 | static __inline u_int32_t |
| 120 | kerneldump_parity(struct kerneldumpheader *kdhp) |
| 121 | { |
| 122 | uint32_t *up, parity; |
| 123 | u_int i; |
| 124 | |
| 125 | up = (uint32_t *)kdhp; |
| 126 | parity = 0; |
| 127 | for (i = 0; i < sizeof *kdhp; i += sizeof *up) |
| 128 | parity ^= *up++; |
| 129 | return (parity); |
| 130 | } |
| 131 | |
| 132 | #ifdef _KERNEL |
| 133 | struct dump_pa { |
no outgoing calls
no test coverage detected