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 --- asm/start.h | 1 + asm/start.s | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'asm') diff --git a/asm/start.h b/asm/start.h index 7b31b76..4b2db16 100644 --- a/asm/start.h +++ b/asm/start.h @@ -4,6 +4,7 @@ * specific addresses in the final ELF kernel binary. * This is specified in the _linker.ld_ file. * + * TODO: THIS IS NOT TRUE ANYMORE (SINCE IT KILLED THE MEMORY IN BETWEEN PROABBLY) * * 0x007000 .smp - entry point for application processors (16bit code) * * 0x100000 .multiboot - the multiboot header * diff --git a/asm/start.s b/asm/start.s index 26464a7..ca99c20 100644 --- a/asm/start.s +++ b/asm/start.s @@ -15,12 +15,14 @@ .set MAGIC, 0x1BADB002 # 'magic number' lets bootloader find the header .set CHECKSUM, -(MAGIC + FLAGS) # checksum of above, to prove we are multiboot -# entry point for application processors at 0x7000 +# entry point for application processors we will copy this to 0x7000 later + .section .smp .code16 _start_smp: call smp_start # TODO: align later before going C + # Declare a header as in the Multiboot Standard. We put this into a special # section so we can force the header to be in the start of the final program. # You don't need to understand all these details as it is just magic values that -- cgit v1.2.3