bugfix: 解决了ignore_int在运行时可能破坏进程执行上下文的问题。 (#61)

This commit is contained in:
login
2022-10-16 19:38:46 +08:00
committed by GitHub
parent fbe1e23e97
commit bf8f61b500
6 changed files with 76 additions and 96 deletions

View File

@ -351,4 +351,11 @@ ENTRY(syscall_int)
xchgq %rax, (%rsp) // FUNC
jmp Err_Code
// irqignore_int
ENTRY(ignore_int)
pushq $0
pushq %rax
leaq ignore_int_handler(%rip), %rax // ignore
xchgq %rax, (%rsp) // FUNC
jmp Err_Code