Date: Tue, 9 Dec 2003 01:52:15 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ia64/ia64 trap.c Message-ID: <200312090952.hB99qFgE074959@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312090952.hB99qFgE074959>