From 2f9a6b5548f6b6fcdffc0c5494c500e86bacc1f0 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 2 Oct 2025 11:52:27 +0200 Subject: [PATCH] Fix stack pointer setup --- boot/bootsect/mbrboot.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootsect/mbrboot.S b/boot/bootsect/mbrboot.S index 1ce0232..978ce67 100644 --- a/boot/bootsect/mbrboot.S +++ b/boot/bootsect/mbrboot.S @@ -20,7 +20,7 @@ Start: movw %ax, %es movw %ax, %ss movw $0x7C00, %bp - movw %bp, %sp + leaw -16(%bp), %sp sti /* Relocate MBR to 1FE0:7C00 */