summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-09-28 00:20:44 +0000
committerJoursoir <chat@joursoir.net>2021-09-28 00:20:44 +0000
commit03fd31416142eb0239d861b6f6a4f2f789df9657 (patch)
treefe06e059f92c75ff4e674d25d712990b5cb0748d /arch/x86/boot
parent657cbdedb6edeec1340fa36b501c3b2e9fc6df0a (diff)
downloadmfsos-03fd31416142eb0239d861b6f6a4f2f789df9657.tar.gz
mfsos-03fd31416142eb0239d861b6f6a4f2f789df9657.tar.bz2
mfsos-03fd31416142eb0239d861b6f6a4f2f789df9657.zip
x86/boot: add real mode segment constants
Diffstat (limited to 'arch/x86/boot')
-rw-r--r--arch/x86/boot/rm_seg.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/boot/rm_seg.inc b/arch/x86/boot/rm_seg.inc
new file mode 100644
index 0000000..40067b9
--- /dev/null
+++ b/arch/x86/boot/rm_seg.inc
@@ -0,0 +1,13 @@
+/*
+ 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, 1 # Number of setup sectors
+.set SETUPSEG, 0x9020 # Setup address
+.set KERNSEG, 0x0100 # Historical load address
+.set KERNADDR, KERNSEG * 0x10