Fix data segment mapping.

This commit is contained in:
Christian Speckner 2024-07-24 23:26:56 +02:00
parent 87f5c91c8f
commit 9e1c416f5d
1 changed files with 4 additions and 2 deletions

View File

@ -497,10 +497,12 @@ void CartridgeELF::setupMemoryMap()
STACK_SIZE / CortexM0::PAGE_SIZE, false, mySectionStack.get())
.mapRegionCode(ADDR_TEXT_BASE / CortexM0::PAGE_SIZE,
TEXT_SIZE / CortexM0::PAGE_SIZE, true, mySectionText.get())
.mapRegionData(ADDR_DATA_BASE / CortexM0::PAGE_SIZE,
DATA_SIZE / CortexM0::PAGE_SIZE, false, mySectionData.get())
.mapRegionData(ADDR_RODATA_BASE / CortexM0::PAGE_SIZE,
RODATA_SIZE / CortexM0::PAGE_SIZE, true, mySectionData.get())
RODATA_SIZE / CortexM0::PAGE_SIZE, true, mySectionRodata.get())
.mapRegionData(ADDR_TABLES_BASE / CortexM0::PAGE_SIZE,
TABLES_SIZE / CortexM0::PAGE_SIZE, false, mySectionRodata.get());
TABLES_SIZE / CortexM0::PAGE_SIZE, true, mySectionTables.get());
}