use long mode, x86_64-unknown-none works now

This commit is contained in:
andromeda
2026-03-04 22:45:35 +01:00
parent 1b6f76488d
commit 094e8c288a
6 changed files with 211 additions and 133 deletions

View File

@@ -16,7 +16,7 @@ run with `nix run git+https://git.mtgmonkey.net/andromeda/bootler#bootler`
+------ 0x00100000 ------+
| hardware, bios stuff |
+------ 0x00080000 ------+
| pm stack (esp) | from boot.asm
| free |
+------ 0x00010200 ------+
| kernel (kernel.asm) |
+------ 0x00010000 ------+
@@ -24,7 +24,17 @@ run with `nix run git+https://git.mtgmonkey.net/andromeda/bootler#bootler`
+------ 0x00007E00 ------+
| bootloader (boot.asm) |
+------ 0x00007C00 ------+
| real mode stack (sp) | from boot.asm
| stack | TODO get real stack
+------ 0x00005000 ------+
| PT |
+------ 0x00004000 ------+
| PDT |
+------ 0x00003000 ------+
| PDPT |
+------ 0x00002000 ------+
| PML4T |
+------ 0x00001000 ------+
| free |
+------ 0x00000500 ------+
| bios stuff |
+------ 0x00000000 ------+