Add arch context, WIP switching

This commit is contained in:
Jeremy Soller 2016-08-22 19:56:35 -06:00
parent 4ced24e8d1
commit f6e57ff5d1
5 changed files with 84 additions and 3 deletions

View file

@ -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