Maybe get multiboot to work?

This commit is contained in:
Gwilym Inzani 2023-10-17 23:15:51 +01:00
parent ec6774ca6b
commit 1c0e9f9a2a
2 changed files with 4 additions and 6 deletions

View file

@ -16,18 +16,15 @@ MEMORY {
iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K - __bios_reserved_iwram iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K - __bios_reserved_iwram
} }
__text_start = ORIGIN(ewram);
SECTIONS { SECTIONS {
. = __text_start; . = ORIGIN(ewram);
.text : { .text : {
KEEP(*(.crt0)); *(.entrypoint.multiboot .entrypoint.common);
*(.crt0 .crt0*);
*(.text .text*); *(.text .text*);
. = ALIGN(4); . = ALIGN(4);
} > ewram } > ewram
__text_end = .;
.rodata : { .rodata : {
*(.rodata .rodata.*); *(.rodata .rodata.*);

View file

@ -34,6 +34,7 @@ __start:
@ Filled in by gbafix @ Filled in by gbafix
.space 192 .space 192
@ multiboot launch point @ multiboot launch point
.global __mb_entry
__mb_entry: __mb_entry:
b .Initialise_mb b .Initialise_mb