kern: Update traps, sigbus->sigsegv, cleanup and fixes
authorJohn Marino <draco@marino.st>
Mon, 16 Jan 2012 14:56:07 +0000 (15:56 +0100)
committerJohn Marino <draco@marino.st>
Mon, 16 Jan 2012 18:47:31 +0000 (19:47 +0100)
commitbab695198fa23db96fa7ddd4d192cacc1b08abf9
tree8d373fcd24d1537c6592363a5aabb8b89a44de54
parent007f494e0a1eec2db98703bbe5e4b29a890c01d1
kern: Update traps, sigbus->sigsegv, cleanup and fixes

The primary purpose of this changeset is to change the signal from
bus error to segfault when an attempt to access protected memory is
made.  In the process of doing this, it was noticed that there were
differences between i386 and x86_64 as well as differences between
the actual and virtual kernels.

Several of these differences were addressed.  Extra whitespace was
removed and some syncing between the divergent FreeBSD version was
made.  Some "#if 0" sections were removed.  The virtual kernels were
tested along with the real kernels.  A conservative approach was
taken as there seems to more cruft that could come out.
sys/platform/pc32/i386/trap.c
sys/platform/pc64/x86_64/trap.c
sys/platform/vkernel/i386/trap.c
sys/platform/vkernel64/x86_64/trap.c