Skip to content
Snippets Groups Projects
Commit 0a58960a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add arch context, WIP switching

parent d6b29a87
No related branches found
No related tags found
No related merge requests found
...@@ -103,8 +103,6 @@ startup_arch: ...@@ -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 or ebx, 1 << 31 | 1 << 16 | 1 ;Bit 31: Paging, Bit 16: write protect kernel, Bit 0: Protected Mode
mov cr0, ebx mov cr0, ebx
xchg bx, bx
; far jump to enable Long Mode and load CS with 64 bit segment ; far jump to enable Long Mode and load CS with 64 bit segment
jmp gdt.kernel_code:long_mode jmp gdt.kernel_code:long_mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment