aboutsummaryrefslogtreecommitdiff
path: root/.old/boot_s2.asm
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-02-23 23:18:48 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-02-23 23:18:48 +0100
commit2420e3f52b62580af9cdd661fb441733e437daf9 (patch)
treea2854d70e7297e9bff879c5dc358dfb95d263fab /.old/boot_s2.asm
parent6fc0fd2fd64388e32c4ec1cefa2ad8e1e43fdb5a (diff)
lots of changes. restructured repository. switched to limine.
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to '.old/boot_s2.asm')
-rw-r--r--.old/boot_s2.asm23
1 files changed, 23 insertions, 0 deletions
diff --git a/.old/boot_s2.asm b/.old/boot_s2.asm
new file mode 100644
index 0000000..b974827
--- /dev/null
+++ b/.old/boot_s2.asm
@@ -0,0 +1,23 @@
+; boot_stage2.asm - stage2
+[bits 32]
+
+global _start
+extern kmain
+
+section .text
+
+_start:
+ ; reload segments
+ mov ax, 0x10
+ mov ds, ax
+ mov es, ax
+ mov ss, ax
+ mov fs, ax
+ mov gs, ax
+ mov esp, 0x90000 ; stack
+
+ mov dword [0xB8000], 0x07410741
+ call kmain
+
+ hlt
+