Disable again lto and mark console id shared address as volatile

This commit is contained in:
Edoardo Lolletti 2024-04-26 22:00:24 +02:00
parent 94cb35df6f
commit 3bb7f0f5e2
2 changed files with 3 additions and 3 deletions

View File

@ -30,12 +30,12 @@ CFLAGS := -g -Wall -O2\
-ffast-math \ -ffast-math \
$(ARCH) $(ARCH)
CFLAGS += $(INCLUDE) -DARM9 -flto CFLAGS += $(INCLUDE) -DARM9
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++23 CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++23
ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s
LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) -flto LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project # any extra libraries we wish to link with the project

View File

@ -53,7 +53,7 @@ void nandio_set_fat_sig_fix(u32 offset)
static void getConsoleID(u8 *consoleID) static void getConsoleID(u8 *consoleID)
{ {
u8 *fifo=(u8*)0x02300000; //shared mem address that has our computed key3 stuff vu8 *fifo=(vu8*)0x02300000; //shared mem address that has our computed key3 stuff
u8 key[16]; //key3 normalkey - keyslot 3 is used for DSi/twln NAND crypto u8 key[16]; //key3 normalkey - keyslot 3 is used for DSi/twln NAND crypto
u8 key_x[16];////key3_x - contains a DSi console id (which just happens to be the LFCS on 3ds) u8 key_x[16];////key3_x - contains a DSi console id (which just happens to be the LFCS on 3ds)