From 8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 11 Apr 2024 20:58:38 +0200 Subject: bootinfo struct --- stage1/main.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'stage1/main.asm') 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 -- cgit v1.2.3