kernel - Misc fixes and debugging
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Dec 2011 17:37:20 +0000 (09:37 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Dec 2011 17:37:20 +0000 (09:37 -0800)
commit3338cc67bf8b657fca8ae9544aa3f89bb32cffb8
tree10844c536f7735ea5ed80bf310d2089ec722fe87
parent7f23b32088999ae4107041620ae4856b358eea83
kernel - Misc fixes and debugging

* Add required CLDs in the exception paths.  The interrupt paths already
  CLD in PUSH_FRAME.

* Note that the fast_syscall (SYSENTER) path has an implied CLD due to the
  hardware mask applied to rflags.

* Add the IOPL bits to the set of bits set to 0 during a fast_syscall.

* When creating a dummy interrupt frame we don't have to push the
  actual %cs.  Just push $0 so the frame isn't misinterpreted as coming
  from userland.

* Additional debug verbosity for freeze_on_seg_fault.

* Reserve two void * fields for LWP debugging (for a later commit)
sys/platform/pc32/i386/exception.s
sys/platform/pc64/apic/apic_vector.s
sys/platform/pc64/x86_64/exception.S
sys/platform/pc64/x86_64/ipl.s
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/mp_machdep.c
sys/platform/pc64/x86_64/swtch.s
sys/platform/pc64/x86_64/trap.c
sys/platform/pc64/x86_64/vm_machdep.c
sys/sys/proc.h