summaryrefslogtreecommitdiff
path: root/doc/internal/mem.txt
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2020-09-06 00:48:07 -0400
committerBenji Dial <benji6283@gmail.com>2020-09-06 00:48:07 -0400
commite8c6577617bffa4402c07c7aa20e3c24f03c1c20 (patch)
tree2fb9230b62d2344a44453117de9e656892219788 /doc/internal/mem.txt
parent7ff724fe8f709440da9c730fdb8dcbaa4f989ed5 (diff)
downloadportland-os-e8c6577617bffa4402c07c7aa20e3c24f03c1c20.tar.gz
program loading, others
big kernel additions: paging, elf loading, separate kernel and user page allocation it now properly loads and runs sd0:bin/init.elf still need to determine which disk was booted from, and start the init on that disk
Diffstat (limited to 'doc/internal/mem.txt')
-rw-r--r--doc/internal/mem.txt23
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/internal/mem.txt b/doc/internal/mem.txt
index 0819fb7..c5f5e8b 100644
--- a/doc/internal/mem.txt
+++ b/doc/internal/mem.txt
@@ -1,17 +1,28 @@
-0x0000.4000 - 0x0000.4003 (4): bootloader info
+0x0000.4000 - 0x0000.4007 (8): bootloader info
0x0 byte: support flags
0x80: PCI
+ 0x40: PAE
0x1 byte: PCI "hardware characteristics"
0x2 byte: PCI minor
0x3 byte: PCI major
0x4 byte: last PCI bus
-0x0000.4200 - 0x0000.42ff (256): VESA info
-0x0000.4300 - 0x0000.43ff (256): VBE strings
+ 0x6 word: BIOS memory map length
-0x0001.0000 - 0x0001.1fff (8k): memory map
+0x0000.4f98 - 0x0000.4fff (104): TSS
+0x0000.5000 - 0x0000.5fff (4k): kernel page directory
-0x0003.0000 - 0x0003.7fff (32k): kernel
+0x0001.0000 - 0x0001.ffff (64k): BIOS memory map
+
+0x0003.0000 - 0x0003.7fff (32k): kernel text, data, rodata
0x0003.8000 - 0x0003.ffff (32k): kernel stack
+0x0004.0000 - 0x0005.ffff (128k): pagemap
+
+0x000a.0000 - 0x000f.ffff (384k): VGA and BIOS memory
+
+0x0040.0000 - 0x007f.ffff (4M): kernel page tables
+
+0x00f0.0000 - 0x00ff.ffff (1M): ISA memory
-0x1000.0000 - 0x1fff.ffff (256M): dynamic memory \ No newline at end of file
+0x0400.0000 - 0x07ff.ffff (64M): kernel heap, bss pages
+0x0800.0000 - 0xffff.ffff (rest): user pages, hardware memory \ No newline at end of file