X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Facesskernel_src%2Finclude%2Farch.h;h=ab27de1f1ea0996448d468b0de7a75b123186e23;hb=82be808714198ab884748f14f06abf458a3c5d59;hp=1307e0c6d85c49d27f47566aaa8167c1c491a6d1;hpb=04a050f42807686dc119838c82372409246d55bb;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/include/arch.h b/AcessNative/acesskernel_src/include/arch.h index 1307e0c6..ab27de1f 100644 --- a/AcessNative/acesskernel_src/include/arch.h +++ b/AcessNative/acesskernel_src/include/arch.h @@ -28,8 +28,9 @@ typedef intptr_t tPAddr; typedef int BOOL; +#define HALT_CPU() exit(1) + #include -#undef NULL #undef offsetof struct sShortSpinlock @@ -37,9 +38,13 @@ struct sShortSpinlock void *Mutex; }; -#define SHORTLOCK(...) -#define SHORTREL(...) -#define CPU_HAS_LOCK(...) 0 +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(l) Threads_int_ShortHas(&(l)->Mutex) //#define NUM_CFG_ENTRIES 10