diff options
Diffstat (limited to 'sys/arch/amd64/cpu/boot.S')
| -rw-r--r-- | sys/arch/amd64/cpu/boot.S | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/amd64/cpu/boot.S b/sys/arch/amd64/cpu/boot.S index 9fb8b60..3ce82e6 100644 --- a/sys/arch/amd64/cpu/boot.S +++ b/sys/arch/amd64/cpu/boot.S @@ -29,12 +29,17 @@ .globl _start .extern uart_init + .extern gdt_load + .extern GDTR _start: cli cld - xor %rbp, %rbp - call uart_init + xor %rbp, %rbp /* Terminate callstack */ + call uart_init /* Initialize platform UART */ + + lea GDTR(%rip), %rdi /* Our GDTR */ + call gdt_load /* Load our GDT */ 1: cli hlt |
