aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot/entry64.s
blob: f575c505a3e2b6394c59b3a2f8f644cabad4c967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.section .boot_text, "ax", @progbits
.code64

.global _entry64
_entry64:
    mov $global_descriptor_table_data, %rax
    mov %rax, %ss
    mov %rax, %ds
    mov %rax, %es
    mov %rax, %fs
    mov %rax, %gs

    xor %rax, %rax

    call _init

    call main

1:
    hlt
    jmp 1b