Moved osGetActiveQueue to it's own file to resolve the issue with the nop placement

This commit is contained in:
Ryan Myers
2021-09-22 08:27:23 -04:00
parent fdd8d104dc
commit 7e5476f557
2 changed files with 12 additions and 11 deletions
+11
View File
@@ -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 -11
View File
@@ -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