summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-24 00:16:05 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-24 00:16:05 -0500
commita947a7a143029ee8ef5cb4a4232d7439b8a79670 (patch)
tree69ee1c58837efee95091781b12456a09f820357c /doc
parente520b52cd58f70af9a17f330fe1ce98ce059762c (diff)
downloadportland-os-a947a7a143029ee8ef5cb4a4232d7439b8a79670.tar.gz
small changes, part 2, rewriting bootloader partially, giving up on this branch
Diffstat (limited to 'doc')
-rw-r--r--doc/design/memory_map.txt29
1 files changed, 13 insertions, 16 deletions
diff --git a/doc/design/memory_map.txt b/doc/design/memory_map.txt
index 74ac2d5..fdf9f74 100644
--- a/doc/design/memory_map.txt
+++ b/doc/design/memory_map.txt
@@ -1,20 +1,17 @@
0x0000 - 0x03ff : interrupt vector table
0x0400 - 0x04ff : bios data area
-0x0500 - 0x05ff : structure pointers
- 0x00 : fat
- 0x04 : root directory
- 0x08 : kernel
- 0x0c : file handle array
- 0x10 : process array
-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
+0x0500 - 0x05ff : global info
+ 0x00 dword : fat pointer
+ 0x04 dword : root directory pointer
+ 0x08 word : usable memory from 0 to 1MiB in kiB
+ 0x0a word : usable memory from 1MiB to 16MiB in kiB
+ 0x0c dword : bootloader:
+ lower word: low memory usage by bootloader in kiB,
+ upper word: kernel image length in kiB
+ kernel:
+ file handle array pointer
+ 0x10 dword : process array pointer
+ 0x14 word : usable memory from 16MiB up in 64s of kiB
+0x0600 - 0x6fff : not assigned
-0x7000 - 0x7bff : bootloader scratch
- 0x7000 : memory map bios buffer
0x7c00 - 0x7fff : bootloader \ No newline at end of file