mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Moved osGetActiveQueue to it's own file to resolve the issue with the nop placement
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800D2470 */
|
||||
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
#include "libultra_internal.h"
|
||||
|
||||
extern OSThread *__osActiveQueue;
|
||||
OSThread *__osGetActiveQueue(void) {
|
||||
return __osActiveQueue;
|
||||
}
|
||||
@@ -1,20 +1,10 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800D2470 */
|
||||
/* RAM_POS: 0x800D2480 */
|
||||
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
#include "libultra_internal.h"
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
//Only fails because it doesn't generate a NOP after this. Maybe -01?
|
||||
extern OSThread *__osActiveQueue;
|
||||
OSThread *__osGetActiveQueue(void) {
|
||||
return __osActiveQueue;
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0D3020/func_800D2470.s")
|
||||
#endif
|
||||
|
||||
#define PI_Q_BUF_LEN 1
|
||||
extern u32 __osPiAccessQueueEnabled;//__osPiAccessQueueEnabled
|
||||
extern OSMesg D_8012D1E0[PI_Q_BUF_LEN];//piAccessBuf
|
||||
|
||||
Reference in New Issue
Block a user