From a947a7a143029ee8ef5cb4a4232d7439b8a79670 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 24 Dec 2019 00:16:05 -0500 Subject: small changes, part 2, rewriting bootloader partially, giving up on this branch --- doc/design/memory_map.txt | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'doc/design/memory_map.txt') 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 -- cgit v1.2.3