Fix a panic when rebooting a SMP machine, when option STOP_NMI is used,

nmi handler is used to stop other processors, nmi hander calls trap(),
however, trap() now accepts a pointer rather than a reference, this was
changed by kmacy@.
This commit is contained in:
David Xu 2006-12-23 03:30:50 +00:00
parent afae638809
commit 4b0f4e9d9e

View File

@ -365,6 +365,7 @@ nmi_needswapgs:
/* Note: this label is also used by ddb and gdb: */
nmi_calltrap:
FAKE_MCOUNT(TF_RIP(%rsp))
movq %rsp, %rdi
call trap
MEXITCOUNT
testl %ebx,%ebx