AMD64 - Fix trapframe, intrframe, and user mode cpu accounting.
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Jul 2009 06:22:45 +0000 (23:22 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Jul 2009 06:22:45 +0000 (23:22 -0700)
commit061e48458f3a1e4a7fee02318bec186e02d6757f
treec6ef5667c252a67f916ed7366048d169589fc912
parent13089ba67c2e0645a4469ba3245426f49bd4b55c
AMD64 - Fix trapframe, intrframe, and user mode cpu accounting.

* Fix broken CLKF_USERMODE macro.  This was causing the cpu accounting
  code to mis-detect usermode interrupt frames.

* Fix trapframe, it was missing a field and not matching up against intrframe.
  This caused a bad intrframe to be passed to doreti.

* Fix calls to lwkt_process_ipiq_frame from doreti.  The intrframe was off
  by 8 bytes.
sys/cpu/amd64/include/frame.h
sys/platform/pc64/amd64/ipl.s
sys/platform/pc64/include/cpu.h