重构内存分配器、增加中断支持、整理rust运行时环境 #4

Merged
pointer-to-bios merged 39 commits from downstream into main 2024-04-11 00:36:14 +08:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 0613dadeaf - Show all commits

View File

@ -26,6 +26,9 @@ init64:
lea rax, [systemcall_procedure]
wrmsr
; 加载中断相关寄存器
; 需要加载寄存器IA32_INTERRUPT_SSP_TABLE
jmp kmain
section .multiboot2 align=8

View File

@ -50,6 +50,10 @@ set_kernel_stack_cache:
pop rax
ret
; void return_from_systemcall()
return_from_systemcall:
sysret
save_kernel_stack:
endbr64
lea rbx, [kernel_stack_cache]