diff options
Diffstat (limited to 'stage1')
-rw-r--r-- | stage1/main.asm | 5 |
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 |