From 76b3da6022310dd8edbbbfdf4f73f1696a559853 Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 3 Sep 2018 03:08:43 +0200 Subject: thinking about memory layout --- linker.ld | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'linker.ld') diff --git a/linker.ld b/linker.ld index 4d61b48..7f10731 100644 --- a/linker.ld +++ b/linker.ld @@ -3,19 +3,29 @@ ENTRY(_start) SECTIONS { /* 0x00000500 - 0x00007BFF : guaranteed free to use */ - . = 0x7000; - kernel_start = .; /* smp code at 0x7000*/ - .text BLOCK(4K) : ALIGN(4K) + . = 0x00007000; + kernel_start = .; + + .multiboot BLOCK(4K) : ALIGN(4K) { - *(.smp) + asm/start.o(.smp) + asm/asm_mp.o + *(.multiboot) } + + + /* + 0x00007E00 0x0007FFFF 480.5 KiB RAM (guaranteed free for use) Conventional memory + 0x00080000 0x0009FBFF approximately 120 KiB, depending on EBDA size RAM (free for use, if it exists) Conventional memory + */ + /* 0x00100000 - 0x00EFFFFF : free for use (if it exists) 14Mib */ + + . = 0x00100000; - /* 0x00100000 - 0x00EFFFFF : free for use (if it exists) */ - . = 0x100000; /* _start code as 0x100000 and rest of code*/ - .text BLOCK(4K) : ALIGN(4K) + .text BLOCK(4K): ALIGN(4K) { *(.multiboot) *(.text) -- cgit v1.2.3