From 4325278d89c54ada17ec51ac1462ec6f8ae673ee Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 1 Oct 2021 12:07:12 +0000 Subject: x86/boot/setup: set up the stack --- arch/x86/boot/setup.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/boot/setup.s b/arch/x86/boot/setup.s index 2a0ab15..bda71ee 100644 --- a/arch/x86/boot/setup.s +++ b/arch/x86/boot/setup.s @@ -19,9 +19,13 @@ _start: mov $SDATASEG, %ax mov %ax, %ds + mov %ax, %ss mov $KERNSEG, %ax mov %ax, %es + mov $0xFF00, %bp # Set up the stack at 0x9ff00 + mov %bp, %sp + BIOS_PRINT $get_data_msg # TODO: get memory size # TODO: get video infos -- cgit v1.2.3-18-g5258