summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/mem.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-06-25 22:22:58 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-06-25 22:22:58 +0200
commitaab4e32ce05a26bff7386bb86ffc24589cbe601c (patch)
tree3ee177109bf3b076b6cccf461cf559c284fa845a /sys/src/9/pc/mem.h
parentffde0eda463e8b908975abcabc5345cfaa1a14f7 (diff)
pc, pc64: support for multiboot framebuffer, common bootargs and multiboot code
Diffstat (limited to 'sys/src/9/pc/mem.h')
-rw-r--r--sys/src/9/pc/mem.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/src/9/pc/mem.h b/sys/src/9/pc/mem.h
index 7f5b09a16..6de469cb3 100644
--- a/sys/src/9/pc/mem.h
+++ b/sys/src/9/pc/mem.h
@@ -78,6 +78,17 @@
*/
/*
+ * Where configuration info is left for the loaded programme.
+ * This will turn into a structure as more is done by the boot loader
+ * (e.g. why parse the .ini file twice?).
+ * There are 3584 bytes available at CONFADDR.
+ */
+#define BOOTLINE ((char*)CONFADDR)
+#define BOOTLINELEN 64
+#define BOOTARGS ((char*)(CONFADDR+BOOTLINELEN))
+#define BOOTARGSLEN (4096-0x200-BOOTLINELEN)
+
+/*
* known x86 segments (in GDT) and their selectors
*/
#define NULLSEG 0 /* null segment */