X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=AcessNative%2Facesskernel_src%2Finclude%2Farch.h;h=1307e0c6d85c49d27f47566aaa8167c1c491a6d1;hb=9a0444cde872613a1fad42857506ae17dde4b2b8;hp=fdd23a8204bdd6365e32d52e0017ac48f3896315;hpb=a4d8188f730bcc25cd4a6f4799ac7d65eb707cf2;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/include/arch.h b/AcessNative/acesskernel_src/include/arch.h index fdd23a82..1307e0c6 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,16 +28,23 @@ typedef intptr_t tPAddr; typedef int BOOL; +#include +#undef NULL +#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