mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Maybe get multiboot to work?
This commit is contained in:
parent
ec6774ca6b
commit
1c0e9f9a2a
|
@ -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.*);
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue