X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Facesskernel_src%2Finclude%2Farch.h;h=e99948c97fcb3536856101e7134b6bcd7b3ce1c2;hb=b0da731b2d89b9dd58de2c98eaf6218a41a21920;hp=8f0eb796eac89abe0a69b8e500a1e9093f746119;hpb=02cbaac1233be9c5228973a787431fa5e0aa178e;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/include/arch.h b/AcessNative/acesskernel_src/include/arch.h index 8f0eb796..e99948c9 100644 --- a/AcessNative/acesskernel_src/include/arch.h +++ b/AcessNative/acesskernel_src/include/arch.h @@ -4,11 +4,11 @@ #define _ARCH_H_ #include -#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; @@ -26,14 +26,24 @@ typedef intptr_t Uint; typedef intptr_t tVAddr; typedef intptr_t tPAddr; +typedef int BOOL; + +#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