Skip to content

Commit

Permalink
Force .S file register names to EABI64
Browse files Browse the repository at this point in the history
  • Loading branch information
rickgaiser committed Jan 9, 2021
1 parent 89bfd7e commit c489f6c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ee_core/src/asm.S
Expand Up @@ -10,6 +10,9 @@
#include <ee_cop0_defs.h>
#include <syscallnr.h>

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

#define COMPAT_MODE_3 0x04 // Unhook Syscalls
#define COMPAT_MODE_6 0x20 // Disable IGR

Expand Down
3 changes: 3 additions & 0 deletions ee_core/src/cheat_engine.S
Expand Up @@ -21,6 +21,9 @@
* $Id$
*/

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

#define F_EngineHandler
#define F_CodeHandler

Expand Down
3 changes: 3 additions & 0 deletions ee_core/src/dve_reg.S
Expand Up @@ -9,6 +9,9 @@
#
*/

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

.global dveStat1
.global dveStat2

Expand Down
3 changes: 3 additions & 0 deletions ee_core/src/gsm_engine.S
Expand Up @@ -11,6 +11,9 @@
#include <ee_cop0_defs.h>
#include <syscallnr.h>

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

#include "gsm_defines.h"

# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions ee_core/src/gsm_engine_adv.S
Expand Up @@ -11,6 +11,9 @@
# This file is included by gsm_engine.S
#

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

.extern setdve_576P
.extern dveStat1
.extern dveStat2
Expand Down
3 changes: 3 additions & 0 deletions ee_core/src/patches_asm.S
Expand Up @@ -7,6 +7,9 @@
#include <ee_cop0_defs.h>
#include <syscallnr.h>

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

.set push
.set noreorder
.set noat
Expand Down
3 changes: 3 additions & 0 deletions elfldr/crt0.S
Expand Up @@ -10,6 +10,9 @@
# Modified crt0.s
# Remove _ps2sdk_args_parse, _ps2sdk_libc_init and _ps2sdk_libc_deinit weak functions for size optimization

#define ABI_EABI64 // force all register names to EABI64 (legacy toolchain)
#include "as_reg_compat.h"

.weak _init
.type _init, @function

Expand Down

0 comments on commit c489f6c

Please sign in to comment.