重构内存分配器、增加中断支持、整理rust运行时环境 #4
|
@ -26,6 +26,9 @@ init64:
|
|||
lea rax, [systemcall_procedure]
|
||||
wrmsr
|
||||
|
||||
; 加载中断相关寄存器
|
||||
; 需要加载寄存器IA32_INTERRUPT_SSP_TABLE
|
||||
|
||||
jmp kmain
|
||||
|
||||
section .multiboot2 align=8
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue