From a98393d68bb76c21015d2d41d4092f9552016bad Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Thu, 2 May 2024 19:02:42 +0300 Subject: cleanup: prefix boot labels --- src/boot/boot64.s | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/boot/boot64.s (limited to 'src/boot/boot64.s') 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 -- cgit v1.2.3