diff options
| author | Marin Ivanov <[email protected]> | 2024-05-02 19:02:42 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-05-02 19:02:42 +0300 |
| commit | a98393d68bb76c21015d2d41d4092f9552016bad (patch) | |
| tree | 2ab78c97142ca18ec360fe3d7938a1647746353c /src/boot/boot64.s | |
| parent | 73aa1c6db67924c073d05cd167d4c70f4b7ae09f (diff) | |
cleanup: prefix boot labels
Diffstat (limited to 'src/boot/boot64.s')
| -rw-r--r-- | src/boot/boot64.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/boot/boot64.s b/src/boot/boot64.s new file mode 100644 index 0000000..e851388 --- /dev/null +++ b/src/boot/boot64.s @@ -0,0 +1,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
\ No newline at end of file |
