nasm的iret指令是32位iret,必须使用iretq才会翻译为64位iret指令

This commit is contained in:
pointer-to-bios 2024-05-02 22:31:43 +08:00
parent 47f16d060e
commit ba36b60b68
1 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ interrupt_entry_UNSUPPORTED:
call interrupt_req_UNSUPPORTED
interrupt_entry_leave
iret
iretq
global interrupt_entry_DE
extern interrupt_req_DE
@ -75,12 +75,12 @@ interrupt_entry_DE:
call interrupt_req_DE
interrupt_entry_leave
iret
iretq
global interrupt_entry_NMI
interrupt_entry_NMI:
; TODO 暂时不需要为这个中断实现任何功能
iret
iretq
global interrupt_entry_BP
extern interrupt_req_BP
@ -94,7 +94,7 @@ interrupt_entry_BP:
call interrupt_req_BP
interrupt_entry_leave
iret
iretq
global interrupt_entry_OF
extern interrupt_req_OF
@ -106,4 +106,4 @@ interrupt_entry_OF:
call interrupt_req_OF
interrupt_entry_leave
iret
iretq