summaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2024-04-11 20:58:38 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2024-04-11 21:05:47 +0200
commit8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad (patch)
tree4080e975e33df6f3c57ff5f3486f97923c9bbbe3 /stage1
parenta6669e496e46ef89673103b3330226c7d0201a1a (diff)
downloadcuddles-8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad.tar.xz
bootinfo struct
Diffstat (limited to 'stage1')
-rw-r--r--stage1/main.asm5
1 files changed, 2 insertions, 3 deletions
diff --git a/stage1/main.asm b/stage1/main.asm
index fcf7ed3..2f8c60c 100644
--- a/stage1/main.asm
+++ b/stage1/main.asm
@@ -19,9 +19,6 @@ boot:
mov ebx, .msg
call print_str
- ; save offset of the file system
- mov dword[0x1000-10-8], KSIZE+512
-
; print boot drive
pusha
movzx eax, dl
@@ -36,6 +33,8 @@ boot:
mov bp, KSTART
mov sp, bp
+ ; pass offset of the file system as argument
+ mov edi, KSIZE+512
; jump into stage2
jmp KSTART