diff options
author | Joursoir <chat@joursoir.net> | 2022-09-27 18:59:00 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-10-04 02:34:12 +0300 |
commit | 14c0596d40f5b02153ce379ea6060bd82120f4f9 (patch) | |
tree | 58d633b4aa883c7e9a52cbdf6431263a77458eeb /arch/x86/boot/bootloader/rm_seg.inc | |
parent | 3955de98fa26ca847041f5fcb50268927b44a208 (diff) | |
download | mfsos-14c0596d40f5b02153ce379ea6060bd82120f4f9.tar.gz mfsos-14c0596d40f5b02153ce379ea6060bd82120f4f9.tar.bz2 mfsos-14c0596d40f5b02153ce379ea6060bd82120f4f9.zip |
move our bootloader to special directory
Diffstat (limited to 'arch/x86/boot/bootloader/rm_seg.inc')
-rw-r--r-- | arch/x86/boot/bootloader/rm_seg.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/boot/bootloader/rm_seg.inc b/arch/x86/boot/bootloader/rm_seg.inc new file mode 100644 index 0000000..f6d4750 --- /dev/null +++ b/arch/x86/boot/bootloader/rm_seg.inc @@ -0,0 +1,14 @@ +/* + Real mode segment constants. + + NOTE: Header file only for assembler +*/ + +# Addresses of RAM: +.set BOOTSEG, 0x07c0 # Address of boot sector +.set SDATASEG, 0x9000 # System data +.set SETUPLEN, 2 # Number of setup sectors +.set SETUPSEG, 0x9020 # Setup address +.set KERNSEG, 0x0100 # Historical load address +.set KERNSIZE, 0x1000 # Kernel size, interpret as a segment +.set KERNADDR, KERNSEG * 0x10 |