X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Facesskernel_src%2Finclude%2Farch.h;h=868a0569c424934ea761926eff33e6211291c17e;hb=98bd9c0c8985c50c42231c116a4e18fedd47761e;hp=1e2be703afdd0c161bd3f4789d3d6fa7c06f744a;hpb=da654737f999018575d735b7e6af8681b5a3185c;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/include/arch.h b/AcessNative/acesskernel_src/include/arch.h index 1e2be703..868a0569 100644 --- a/AcessNative/acesskernel_src/include/arch.h +++ b/AcessNative/acesskernel_src/include/arch.h @@ -28,6 +28,7 @@ typedef intptr_t tPAddr; typedef int BOOL; +extern void exit(int status) __attribute__((noreturn)); #define HALT_CPU() exit(1) #include @@ -40,10 +41,11 @@ struct sShortSpinlock extern void Threads_int_ShortLock(void **Ptr); extern void Threads_int_ShortRel(void **Ptr); +extern int Threads_int_ShortHas(void **Ptr); #define SHORTLOCK(l) Threads_int_ShortLock(&(l)->Mutex) #define SHORTREL(l) Threads_int_ShortRel(&(l)->Mutex) -#define CPU_HAS_LOCK(...) 0 +#define CPU_HAS_LOCK(l) Threads_int_ShortHas(&(l)->Mutex) //#define NUM_CFG_ENTRIES 10