Merge with upstream

This commit is contained in:
jdflyer
2023-01-24 21:41:59 -07:00
47 changed files with 372 additions and 1750 deletions
+2
View File
@@ -51,6 +51,8 @@ typedef enum {
typedef u8 __OSException;
typedef void (*OSErrorHandler)(OSError error, OSContext* context, u32, u32);
// Using this type for the C++ handlers makes stuff not match
typedef void (*OSErrorHandlerEx)(OSError error, OSContext* context, u32, u32, ...);
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler);
void __OSUnhandledException(__OSException exception, OSContext* context, u32 dsisr, u32 dar);
+2 -2
View File
@@ -21,13 +21,13 @@ typedef struct OSCond {
void OSInitMutex(OSMutex* mutex);
void OSLockMutex(OSMutex* mutex);
void OSUnlockMutex(OSMutex* mutex);
s32 OSTryLockMutex(OSMutex* mutex);
BOOL OSTryLockMutex(OSMutex* mutex);
void OSInitCond(OSCond* cond);
void OSWaitCond(OSCond* cond, OSMutex* mutex);
void OSSignalCond(OSCond* cond);
void __OSUnlockAllMutex(OSThread* thread);
s32 __OSCheckMutex(OSThread* thread);
BOOL __OSCheckMutex(OSMutex* thread);
BOOL __OSCheckDeadLock(OSThread* thread);
BOOL __OSCheckMutexes(OSThread* thread);
+1 -1
View File
@@ -44,8 +44,8 @@ struct OSThreadQueue {
};
struct OSMutexLink {
OSMutex* prev;
OSMutex* next;
OSMutex* prev;
};
struct OSMutexQueue {