mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Use __NO_STRICT_ALIGNMENT, instead of special casing ia64 and sparc64.
This fixes panics I got on arm, with struct ip aligned on 4 bytes. MFC After: 1 week
This commit is contained in:
parent
f2bf119ead
commit
f6966ecd8e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166577
@ -290,7 +290,7 @@ if_simloop(ifp, m, af, hlen)
|
||||
/* Strip away media header */
|
||||
if (hlen > 0) {
|
||||
m_adj(m, hlen);
|
||||
#if defined(__ia64__) || defined(__sparc64__)
|
||||
#ifndef __NO_STRICT_ALIGNMENT
|
||||
/*
|
||||
* Some archs do not like unaligned data, so
|
||||
* we move data down in the first mbuf.
|
||||
|
Loading…
Reference in New Issue
Block a user