From aeff38fe153addba50b40600166acd42e7885e99 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 11 Dec 2019 10:14:32 -0500 Subject: still need to read, parse root directory to find kernel and need to put boot signature at 0x7dfe to jump around --- doc/design/kernel_functions.txt | 4 ++++ doc/design/memory_map.txt | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 doc/design/kernel_functions.txt create mode 100644 doc/design/memory_map.txt (limited to 'doc') 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 -- cgit v1.2.3