Add AT_ADDRESS macro

This commit is contained in:
LagoLunatic
2024-07-12 11:03:34 -04:00
parent 33c6922ae8
commit 1cd37880b7
24 changed files with 85 additions and 50 deletions
+3 -2
View File
@@ -2,6 +2,7 @@
#define OSTHREAD_H
#include "dolphin/os/OSContext.h"
#include "dolphin/os/OSUtil.h"
#ifdef __cplusplus
extern "C" {
@@ -75,8 +76,8 @@ struct OSThread {
typedef void (*OSSwitchThreadCallback)(OSThread* from, OSThread* to);
OSThreadQueue OS_THREAD_QUEUE : 0x800000DC;
OSThread* OS_CURRENT_THREAD : 0x800000E4;
OSThreadQueue OS_THREAD_QUEUE AT_ADDRESS(0x800000DC);
OSThread* OS_CURRENT_THREAD AT_ADDRESS(0x800000E4);
static void DefaultSwitchThreadCallback(OSThread* from, OSThread* to);
OSSwitchThreadCallback OSSetSwitchThreadCallback(OSSwitchThreadCallback func);