aboutsummaryrefslogtreecommitdiff
path: root/src/boot/boot64.s
blob: e8513885d1e9bbd1c4515cf2d1fe1eb57227c105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.global boot_long_mode_start
.extern kmain

.section .text
.code64
boot_long_mode_start:
    // load null into all data segment registers
    mov $0, %ax
    mov %ax, %ss 
    mov %ax, %ds 
    mov %ax, %es 
    mov %ax, %fs 
    mov %ax, %gs 

	jmp kmain