From b9cbe7f1c32da3884af275a8ebc02db053c433e4 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 12 Mar 2024 12:15:06 +0000 Subject: [PATCH] build.mak: default to firmware 6.0 as discussed in #89, few structs have different layout depending on the _PSP_FW_VERSION macro. this makes a noticable (i.e. resulting in potential memory corruption) difference only in few structs that are supposed to be used only by kernel experts, but it makes it clear to non-experts that the struct layouts they program for are the latest ones. an expert trying to target an older firmware version, can still override the macro on the commandline. closes #89 --- src/base/build.mak | 2 +- src/base/build_prx.mak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/build.mak b/src/base/build.mak index 132cdecb..24351741 100644 --- a/src/base/build.mak +++ b/src/base/build.mak @@ -35,7 +35,7 @@ CXXFLAGS := $(CFLAGS) $(CXXFLAGS) ASFLAGS := $(CFLAGS) $(ASFLAGS) ifeq ($(PSP_FW_VERSION),) -PSP_FW_VERSION=150 +PSP_FW_VERSION=600 endif EXPAND_MEMORY = 0 diff --git a/src/base/build_prx.mak b/src/base/build_prx.mak index c8f15a90..671c95f2 100644 --- a/src/base/build_prx.mak +++ b/src/base/build_prx.mak @@ -37,7 +37,7 @@ LIBS := $(LIBS) -lpspdebug -lpspdisplay -lpspge -lpspctrl endif ifeq ($(PSP_FW_VERSION),) -PSP_FW_VERSION=150 +PSP_FW_VERSION=600 endif CFLAGS += -D_PSP_FW_VERSION=$(PSP_FW_VERSION)