From cb48e628db8f4da6e6b45ff84d8d90fd6932e85d Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Wed, 1 Apr 2020 13:09:01 +0000 Subject: [PATCH] kernel stub: force large size to make sure cluster chaining works --- boot/kernel.asm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot/kernel.asm b/boot/kernel.asm index 06488fa..2036007 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -1,6 +1,8 @@ org 0x7C00 -main: mov si, msg +main: push cs + pop ds + mov si, msg mov ah, 0x0e xor bx, bx loop: lodsb @@ -11,4 +13,5 @@ loop: lodsb end: hlt jmp end + align 2048 msg: db "rdos kernel stub", 0x0A, 0x0D, 0