From 63167f223e1f54910f6b80e698390ee60aec79ee Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 11 Aug 2020 11:33:21 -0400 Subject: lots of progress currently, BAR fields of IDE drives are all returning zero, and the ATA read function isn't working. i'm not sure why. i'm going to work on VESA next, and come back to the IDE driver later --- doc/internal/gdt.txt | 7 +++++-- doc/internal/mem.txt | 23 +++++++++++++++++------ doc/internal/ple.txt | 12 ++++++++++++ 3 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 doc/internal/ple.txt (limited to 'doc/internal') diff --git a/doc/internal/gdt.txt b/doc/internal/gdt.txt index 0a8b5ea..26f7be9 100644 --- a/doc/internal/gdt.txt +++ b/doc/internal/gdt.txt @@ -1,2 +1,5 @@ -0x08: 0x0000.0000 - 0x0007.ffff (code) -0x10: 0x0000.0000 - 0x000f.ffff (data) \ No newline at end of file +0x08: 0x0000.0000 - 0x0003.7fff (code) +0x10: 0x0000.0000 - 0x1fff.ffff (data) +0x18: task +0x20: user code +0x28: user data \ No newline at end of file diff --git a/doc/internal/mem.txt b/doc/internal/mem.txt index d8b9913..0819fb7 100644 --- a/doc/internal/mem.txt +++ b/doc/internal/mem.txt @@ -1,6 +1,17 @@ -0x0001.0000 - 0x0001.ffff (64k): unused -0x0002.0000 - 0x0002.7fff (32k): fat -0x0002.8000 - 0x0002.bfff (16k): unused -0x0002.c000 - 0x0002.ffff (16k): 32 file buffers -0x0003.0000 - 0x0003.7fff (32k): kernel -0x0003.8000 - 0x0003.ffff (32k): kernel stack \ No newline at end of file +0x0000.4000 - 0x0000.4003 (4): bootloader info + 0x0 byte: support flags + 0x80: PCI + 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 + +0x0001.0000 - 0x0001.1fff (8k): memory map + +0x0003.0000 - 0x0003.7fff (32k): kernel +0x0003.8000 - 0x0003.ffff (32k): kernel stack + +0x1000.0000 - 0x1fff.ffff (256M): dynamic memory \ No newline at end of file diff --git a/doc/internal/ple.txt b/doc/internal/ple.txt new file mode 100644 index 0000000..1bcceb4 --- /dev/null +++ b/doc/internal/ple.txt @@ -0,0 +1,12 @@ +Portland Executable Format + +0x00 magic dword 0xb9ba4c50 +0x04 minor version word 0x0000 +0x06 major version word 0x0000 +0x08 payload file offset dword +0x0c payload length dword +0x10 bss length dword +0x14 virtual entry point dword + +Payload loaded at start of cs=ds=ss. +bss after payload, esp set to end of bss. \ No newline at end of file -- cgit v1.2.3