cvs commit: src/sys/ia64/ia64 trap.c
Marcel Moolenaar
marcel at FreeBSD.org
Tue Dec 9 01:52:16 PST 2003
marcel 2003/12/09 01:52:15 PST
FreeBSD src repository
Modified files:
sys/ia64/ia64 trap.c
Log:
Don't panic for misalignment traps when the onfault handler is set.
Not all transfers between kernel and user space are byte oriented
and thus alignment safe. Especially fuword*() and suword*() are
sensitive to alignment but in general more optimal than block copies.
By catching the misalignment trap we avoid pessimizing the common
case of properly aligned memory accesses which we would do if we
were to use byte copies or adding tests for proper alignment.
Note that the expectation that the kernel produces aligned pointers
is unchanged. This change therefore relates to possible unaligned
pointers generated in userland.
Revision Changes Path
1.95 +10 -1 src/sys/ia64/ia64/trap.c
More information about the cvs-src
mailing list