Skip to content

Commit

Permalink
Add syscall fallback support and PS5 4.03 offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
McCaulay committed Jul 30, 2023
1 parent 673efee commit 778c13d
Show file tree
Hide file tree
Showing 21 changed files with 2,319 additions and 36 deletions.
1 change: 1 addition & 0 deletions sdk/include/mast1c0re.hpp
Expand Up @@ -14,6 +14,7 @@
#include <offsets/ps/eboot/eboot.hpp>
#include <offsets/ps/libkernel.hpp>
#include <offsets/ps/sce/msg-dialog.hpp>
#include <ps/syscall/table.hpp>
#include <ps/breakout.hpp>
#include <ps/ps.hpp>
#include <ps/memory.hpp>
Expand Down
1 change: 1 addition & 0 deletions sdk/include/offsets/ps/eboot/1.01.hpp
Expand Up @@ -89,6 +89,7 @@
#define EBOOT_SCE_MSG_DIALOG_TERMINATE_STUB 0x00764450

// Function Stub Pointers
#define EBOOT_ERROR_STUB_PTR 0x083cfa0
#define EBOOT_SCE_KERNEL_USLEEP_STUB_PTR 0x083d1c0
#define EBOOT_SCE_KERNEL_REACHABILITY_STUB_PTR 0x083d038

Expand Down
16 changes: 11 additions & 5 deletions sdk/include/offsets/ps/libkernel.hpp
Expand Up @@ -3,23 +3,29 @@
// libkernel_sys.sprx

#if defined(PS4) && PS4
#define LIB_KERNEL_SYS_RET_ERROR 0xc6

#if defined(FIRMWARE) && FIRMWARE == 505
#include <offsets/ps/libkernel/ps4/5.05.hpp>
#define LIB_KERNEL_SYS_RET 0x2b9a
#elif defined(FIRMWARE) && FIRMWARE == 672
#include <offsets/ps/libkernel/ps4/6.72.hpp>
#define LIB_KERNEL_SYS_RET 0x2c4a
#elif defined(FIRMWARE) && FIRMWARE == 900
#include <offsets/ps/libkernel/ps4/9.00.hpp>
#define LIB_KERNEL_SYS_RET 0x2baa
#elif defined(FIRMWARE) && FIRMWARE == 1001
#include <offsets/ps/libkernel/ps4/10.01.hpp>
#elif defined(FIRMWARE) && (FIRMWARE == 1050 || FIRMWARE == 1070)
#include <offsets/ps/libkernel/ps4/10.50_10.70.hpp>
#endif
#elif defined(PS5) && PS5
#if defined(FIRMWARE) && FIRMWARE == 650
#if defined(FIRMWARE) && FIRMWARE == 403
#define LIB_KERNEL_SYS_RET_ERROR 0x35d6
#elif defined(FIRMWARE) && FIRMWARE >= 650 && FIRMWARE <= 760
#define LIB_KERNEL_SYS_RET_ERROR 0x35f6
#endif

#if defined(FIRMWARE) && FIRMWARE == 403
#include <offsets/ps/libkernel/ps5/4.03.hpp>
#elif defined(FIRMWARE) && FIRMWARE == 650
#include <offsets/ps/libkernel/ps5/6.50.hpp>
#define LIB_KERNEL_SYS_RET 0x038a
#endif
#endif

0 comments on commit 778c13d

Please sign in to comment.