X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Facesskernel_src%2Finclude%2Farch.h;h=e99948c97fcb3536856101e7134b6bcd7b3ce1c2;hb=f0e63fc3dd8dd2a6a82b855c89a1b8106e297a68;hp=849eba8258c58d36c788bc380bb93577735389bb;hpb=7f80ab30017689efe0aaaab18abc7ceda689d859;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/include/arch.h b/AcessNative/acesskernel_src/include/arch.h index 849eba82..e99948c9 100644 --- a/AcessNative/acesskernel_src/include/arch.h +++ b/AcessNative/acesskernel_src/include/arch.h @@ -5,10 +5,10 @@ #include //#include -#include #undef CLONE_VM #define _MODULE_NAME_ "NativeKernel" +#define PAGE_SIZE 0x1000 // Assume, making an Ass out of u and me #define BITS (sizeof(intptr_t)*8) typedef uint8_t Uint8; @@ -28,21 +28,22 @@ typedef intptr_t tPAddr; typedef int BOOL; -//typedef uint32_t tTID; -//typedef uint32_t tPID; -//typedef uint32_t tUID; -//typedef uint32_t tGID; +#include +#undef offsetof struct sShortSpinlock { - int IsValid; - pthread_mutex_t Mutex; + void *Mutex; }; #define SHORTLOCK(...) #define SHORTREL(...) +#define CPU_HAS_LOCK(...) 0 //#define NUM_CFG_ENTRIES 10 +extern void Debug_PutCharDebug(char ch); +extern void Debug_PutStringDebug(const char *str); + #endif