diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-28 19:48:49 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-28 19:48:49 +0100 |
commit | 33bb4187103c49c81fbf7c6f18ebcfd4c4d66fd2 (patch) | |
tree | 0a49017fc6d77bf46a4f54c306de45b1a800ce77 /stage1 | |
parent | be6222437bef9955c9dc3b136e56ac70f080bf47 (diff) | |
download | cuddles-33bb4187103c49c81fbf7c6f18ebcfd4c4d66fd2.tar.xz |
stage1: allow bigger kernels
Diffstat (limited to 'stage1')
-rw-r--r-- | stage1/main.asm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stage1/main.asm b/stage1/main.asm index 33264b0..fcf7ed3 100644 --- a/stage1/main.asm +++ b/stage1/main.asm @@ -105,10 +105,12 @@ load_stages: jne .fail ; increase buffer pointer - add bx, 512 + mov ax, es + add ax, 512/0x10 + mov es, ax ; check if finished - cmp bx, KSIZE + cmp ax, (KSTART+KSIZE)/0x10 jae .success ; next sector |