mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Reserve IWRAM space for BIOS use
This commit is contained in:
parent
cd6e8d1346
commit
9040844854
|
@ -7,9 +7,13 @@ EXTERN(__RUST_INTERRUPT_HANDLER)
|
||||||
EXTERN(__agbabi_memset)
|
EXTERN(__agbabi_memset)
|
||||||
EXTERN(__agbabi_memcpy)
|
EXTERN(__agbabi_memcpy)
|
||||||
|
|
||||||
|
/* The bios reserves the final 256 bytes of iwram for its exclusive use, so we
|
||||||
|
* need to avoid writing there */
|
||||||
|
__bios_reserved_iwram = 256;
|
||||||
|
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K
|
ewram (w!x) : ORIGIN = 0x02000000, LENGTH = 256K
|
||||||
iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K
|
iwram (w!x) : ORIGIN = 0x03000000, LENGTH = 32K - __bios_reserved_iwram
|
||||||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 32M
|
rom (rx) : ORIGIN = 0x08000000, LENGTH = 32M
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue