diff options
Diffstat (limited to 'sys/amd64/vmm')
-rw-r--r-- | sys/amd64/vmm/vmm_support.S | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/amd64/vmm/vmm_support.S b/sys/amd64/vmm/vmm_support.S index 2afc608..7919511 100644 --- a/sys/amd64/vmm/vmm_support.S +++ b/sys/amd64/vmm/vmm_support.S @@ -30,13 +30,14 @@ #include <machine/asmacros.h> -#define LA_EOI 0xB0 - .text SUPERALIGN_TEXT IDTVEC(justreturn) + pushq %rdx pushq %rax - movq lapic, %rax - movl $0, LA_EOI(%rax) + pushq %rcx + call as_lapic_eoi + popq %rcx popq %rax - iretq + popq %rdx + jmp doreti_iret |