summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-10-01 12:07:12 +0000
committerJoursoir <chat@joursoir.net>2021-10-01 12:07:12 +0000
commit4325278d89c54ada17ec51ac1462ec6f8ae673ee (patch)
treec9ae9ebe4ccd3242e8f5bdf1258d19936987c928
parentd3240ea301024ac42fe37b693fe4a780e7a6497f (diff)
downloadmfsos-4325278d89c54ada17ec51ac1462ec6f8ae673ee.tar.gz
mfsos-4325278d89c54ada17ec51ac1462ec6f8ae673ee.tar.bz2
mfsos-4325278d89c54ada17ec51ac1462ec6f8ae673ee.zip
x86/boot/setup: set up the stack
-rw-r--r--arch/x86/boot/setup.s4
1 files changed, 4 insertions, 0 deletions
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