aboutsummaryrefslogtreecommitdiff
path: root/pcap-netmap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-09 21:10:20 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-09 21:10:20 -0700
commit33156e96094ffe8303d8026fe71839ac55641d35 (patch)
treec19a8fee68940e03caffb2b8e99158354dca5dc3 /pcap-netmap.c
parentf7e7c2c0ce089ad1ad9a298203c29216fe2b76b1 (diff)
Don't assume ARM supports unaligned accesses.
Prior to ARMv6, it didn't support it. ARMv6 supports it, if the "don't act like ARMv5" bit isn't set in the system control register, but has another bit in the system control register to cause unaligned accesses to fault rather than succeed. ARMv7 and later don't have "act like ARMv5" mode, but still has the "fault on unaligned access" bit. At least some OSes might set the "fault on unaligned access" bit; if your OS *doesn't* set it, feel free to modify the #if to check for your OS and for ARM.
Diffstat (limited to 'pcap-netmap.c')
0 files changed, 0 insertions, 0 deletions