diff options
author | Joursoir <chat@joursoir.net> | 2021-10-01 12:07:12 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-10-01 12:07:12 +0000 |
commit | 4325278d89c54ada17ec51ac1462ec6f8ae673ee (patch) | |
tree | c9ae9ebe4ccd3242e8f5bdf1258d19936987c928 /arch/x86/boot | |
parent | d3240ea301024ac42fe37b693fe4a780e7a6497f (diff) | |
download | mfsos-4325278d89c54ada17ec51ac1462ec6f8ae673ee.tar.gz mfsos-4325278d89c54ada17ec51ac1462ec6f8ae673ee.tar.bz2 mfsos-4325278d89c54ada17ec51ac1462ec6f8ae673ee.zip |
x86/boot/setup: set up the stack
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/setup.s | 4 |
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 |