🆕 实现了异常捕获模块

This commit is contained in:
fslongjin
2022-01-25 18:04:18 +08:00
parent 14374d5faf
commit 06cfb1ceb9
10 changed files with 744 additions and 29 deletions

View File

@ -113,9 +113,9 @@ SetUp_TSS64:
shrq $32, %rdx
movq %rdx, 72(%rdi) // 8BGDT9
//
mov $0x40, %ax // 64
ltr %ax
// (main.c使load_TR)
// mov $0x40, %ax // 64
// ltr %ax
//
movq go_to_kernel(%rip), %rax
@ -134,6 +134,8 @@ m_ignore_int:
pushq %rax
lretq
lretq
go_to_ignore_int:
.quad ignore_int