summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/design/kernel_functions.txt4
-rw-r--r--doc/design/memory_map.txt16
2 files changed, 20 insertions, 0 deletions
diff --git a/doc/design/kernel_functions.txt b/doc/design/kernel_functions.txt
new file mode 100644
index 0000000..8981e86
--- /dev/null
+++ b/doc/design/kernel_functions.txt
@@ -0,0 +1,4 @@
+allocate:
+ ax in: number of pages
+ dx in: process id
+ ebx out: address, or 0x0000_0000 on failure \ No newline at end of file
diff --git a/doc/design/memory_map.txt b/doc/design/memory_map.txt
new file mode 100644
index 0000000..28aed8a
--- /dev/null
+++ b/doc/design/memory_map.txt
@@ -0,0 +1,16 @@
+0x0000 - 0x03ff : interrupt vector table
+0x0400 - 0x04ff : bios data area
+0x0500 - 0x05ff : structure pointers
+ 0x00 dword : fat pointer
+0x0600 - 0x1fff : not assigned
+0x2000 - 0x3fff : memory map
+ for each word : 1 page
+ 0x0000 = free
+ 0x0001 = unavailable
+ 0x0002 = kernel
+ other = process number
+
+0x4000 - 0x6fff : not assigned
+0x7000 - 0x7bff : bootloader scratch
+ 0x7000 : memory map bios buffer
+0x7c00 - 0x7fff : bootloader \ No newline at end of file