Move section0 to second quarter of VRAM

This commit is contained in:
TuxSH 2017-06-26 17:41:40 +02:00
parent 1291f2520a
commit 7246a2664e
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ $(dir_out)/$(name)$(revision).7z: all
$(dir_out)/boot.firm: $(dir_build)/modules.bin $(dir_build)/arm11.elf $(dir_build)/main.elf $(dir_build)/k11_extension.bin $(dir_out)/boot.firm: $(dir_build)/modules.bin $(dir_build)/arm11.elf $(dir_build)/main.elf $(dir_build)/k11_extension.bin
@mkdir -p "$(@D)" @mkdir -p "$(@D)"
@firmtool build $@ -D $^ -A 0x1FF60000 0x18000000 -C XDMA XDMA NDMA XDMA @firmtool build $@ -D $^ -A 0x18180000 0x18000000 -C XDMA XDMA NDMA XDMA
$(dir_build)/modules.bin: $(modules) $(dir_build)/modules.bin: $(modules)
@mkdir -p "$(@D)" @mkdir -p "$(@D)"

View File

@ -241,7 +241,7 @@ static inline void mergeSection0(FirmwareType firmType, u32 firmVersion, bool lo
if(firmType == NATIVE_FIRM && (ISN3DS || firmVersion >= 0x1D)) if(firmType == NATIVE_FIRM && (ISN3DS || firmVersion >= 0x1D))
{ {
//2) Merge that info with our own modules' //2) Merge that info with our own modules'
for(u8 *src = (u8 *)0x1FF60000; src < (u8 *)(0x1FF60000 + LUMA_SECTION0_SIZE); src += srcModuleSize) for(u8 *src = (u8 *)0x18180000; src < (u8 *)(0x18180000 + LUMA_SECTION0_SIZE); src += srcModuleSize)
{ {
const char *name = ((Cxi *)src)->exHeader.systemControlInfo.appTitle; const char *name = ((Cxi *)src)->exHeader.systemControlInfo.appTitle;