diff options
| author | Max Roncace <me@caseif.net> | 2025-12-21 15:36:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-21 12:36:00 -0800 |
| commit | c69e31bd0fbfde798f0b86f5880f1b9d21696365 (patch) | |
| tree | b33701212d7dd04deebb4ea99d2fc86ae1848cc5 /src | |
| parent | ee32f5db5596a08240e065a81cf361b8718dc533 (diff) | |
Make Debug_BBA symbol global in __start.c (#2982)
This fixes an issue where the virtual address of the symbol would
be appended after the name making it impossible to automatically
match the symbol on more than one version.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphin/os/OSThread.c | 4 | ||||
| -rw-r--r-- | src/dolphin/os/__start.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/dolphin/os/OSThread.c b/src/dolphin/os/OSThread.c index 48dd553eb9..81e57afe72 100644 --- a/src/dolphin/os/OSThread.c +++ b/src/dolphin/os/OSThread.c @@ -875,5 +875,5 @@ void* OSGetThreadSpecific(s32 index) { } #include "global.h" -extern u8 Debug_BBA_804516D0; -u8 Debug_BBA_804516D0 ATTRIBUTE_ALIGN(8); +extern u8 Debug_BBA; +u8 Debug_BBA ATTRIBUTE_ALIGN(8); diff --git a/src/dolphin/os/__start.c b/src/dolphin/os/__start.c index 62349da961..110e7e5b3a 100644 --- a/src/dolphin/os/__start.c +++ b/src/dolphin/os/__start.c @@ -17,7 +17,7 @@ __declspec(section ".init") extern void __init_data(void); __declspec(section ".init") extern void __init_hardware(void); __declspec(section ".init") extern void __flush_cache(void* addr, u32 size); -extern u8 Debug_BBA_804516D0; +extern u8 Debug_BBA; __declspec(section ".init") void __check_pad3(void) { if ((*(u16*)0x800030E4 & 0xEEF) == 0xEEF) { @@ -26,11 +26,11 @@ __declspec(section ".init") void __check_pad3(void) { } void __set_debug_bba(void) { - Debug_BBA_804516D0 = 1; + Debug_BBA = 1; } __declspec(section ".init") u8 __get_debug_bba(void) { - return Debug_BBA_804516D0; + return Debug_BBA; } __declspec(section ".init") asm void __start(void) { |
