支持多核启动并初始化AP核的Local APIC

This commit is contained in:
fslongjin
2022-04-04 22:54:36 +08:00
parent 2d1965fa2d
commit d9c7ddec66
4 changed files with 39 additions and 6 deletions

View File

@ -112,6 +112,10 @@ _apu_code64:
or $(3 << 9), %ax //set CR4.OSFXSR and CR4.OSXMMEXCPT at the same time
movq %rax, %cr4
// 1MB
movq $_start64, %rax
jmpq *%rax
hlt