diff options
| author | Miguel <m.i@gmx.at> | 2018-09-03 03:08:43 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-03 03:08:43 +0200 |
| commit | 76b3da6022310dd8edbbbfdf4f73f1696a559853 (patch) | |
| tree | 30e29ac753be8d6b11ce9773f3c4be49734309a9 /asm | |
| parent | 38b1273c7e3a52ae929f36fe07e29bc68ef95102 (diff) | |
thinking about memory layout
Diffstat (limited to 'asm')
| -rw-r--r-- | asm/start.h | 1 | ||||
| -rw-r--r-- | asm/start.s | 4 |
2 files changed, 4 insertions, 1 deletions
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 |
