Add arch context, WIP switching
This commit is contained in:
parent
4ced24e8d1
commit
f6e57ff5d1
5 changed files with 84 additions and 3 deletions
|
@ -103,8 +103,6 @@ startup_arch:
|
|||
or ebx, 1 << 31 | 1 << 16 | 1 ;Bit 31: Paging, Bit 16: write protect kernel, Bit 0: Protected Mode
|
||||
mov cr0, ebx
|
||||
|
||||
xchg bx, bx
|
||||
|
||||
; far jump to enable Long Mode and load CS with 64 bit segment
|
||||
jmp gdt.kernel_code:long_mode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue