CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2010/09/27 21:53:14
Modified files:
sys/arch/amd64/include: frameasm.h
sys/arch/amd64/amd64: locore.S trap.c vector.S
Log message:
Correct the handling of GS.base when iretq faults: the fault happens
with CPL == 0 but the user's GS.base, so the normal INTRENTRY handling
won't work. Contrawise, the asm that trap() redirects us to when that
happens (resume_iret) sees a trapframe showing CPL==3 but it's run with
the kernel's GS.base, so INTRENTRY won't work there either.
asm style fixes drahn@ and mikeb@
ok kettenis@