X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Tools%2Fnativelib%2Finclude%2Facess.h;h=b83b977372676c9b9588cff735e49f44ede32a68;hb=bc164a02c6f5f9fdcc66bd66d2d6a02dcfff8bec;hp=71988653c0d519922ca1dd54122cc0f04d386684;hpb=3241c317ee9f714eba6a0fa82de79cfe5f104993;p=tpg%2Facess2.git diff --git a/Tools/nativelib/include/acess.h b/Tools/nativelib/include/acess.h index 71988653..b83b9773 100644 --- a/Tools/nativelib/include/acess.h +++ b/Tools/nativelib/include/acess.h @@ -50,9 +50,6 @@ typedef uint32_t tUID; typedef uint32_t tGID; typedef uint32_t tTID; -// NOTE: Since this is single-threaded (for now) mutexes can be implimented as simple locks -typedef char tShortSpinlock; - typedef int64_t tTime; extern tTime now(void); extern int64_t timestamp(int sec, int min, int hr, int day, int month, int year); @@ -147,16 +144,7 @@ extern uint64_t DivMod64U(uint64_t Num, uint64_t Den, uint64_t *Rem); static inline int MIN(int a, int b) { return a < b ? a : b; } static inline int MAX(int a, int b) { return a > b ? a : b; } -#if USE_MULTITHREADING -#error "TODO: Impliment multithreaded SHORTLOCK" -#else -static inline void SHORTLOCK(tShortSpinlock *Lock) { - if(*Lock) Log_KernelPanic("---", "Double short lock"); - *Lock = 1; -} -static inline void SHORTREL(tShortSpinlock *m) { *m = 0; } -static inline int CPU_HAS_LOCK(tShortSpinlock *m) { return *m; } -#endif +#include static inline intptr_t MM_GetPhysAddr(void *Ptr) { return 1; } static inline int MM_IsUser(const void *Ptr) { return 1; }