X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Tools%2FDiskTool%2Fsrc%2Finclude%2Facess.h;h=7eff8c916cc1b786aba33ac79c8af227a1c69af4;hb=68f8179ab9eb6380323dc4b19cf4cc1603b576f5;hp=16009a48a23968c2f1cf2a2f4ca7f2cbe691e282;hpb=d95b6765cd3550954fecba3d8ae1bc73792ac008;p=tpg%2Facess2.git diff --git a/Tools/DiskTool/src/include/acess.h b/Tools/DiskTool/src/include/acess.h index 16009a48..7eff8c91 100644 --- a/Tools/DiskTool/src/include/acess.h +++ b/Tools/DiskTool/src/include/acess.h @@ -18,6 +18,7 @@ extern char __buildnum[]; #define BUILD_NUM ((int)(Uint)&__buildnum) extern const char gsGitHash[]; +extern const char gsBuildInfo[]; #define BITS 32 #define NULL ((void*)0) @@ -48,7 +49,6 @@ 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 tMutex; typedef char tShortSpinlock; typedef int64_t tTime; @@ -126,18 +126,13 @@ extern int WriteUTF8(Uint8 *str, Uint32 Val); extern int DivUp(int value, int divisor); extern uint64_t DivMod64U(uint64_t Num, uint64_t Den, uint64_t *Rem); -static inline int Mutex_Acquire(tMutex *m) { - if(*m) Log_KernelPanic("---", "Double mutex lock"); - *m = 1; - return 0; -} -static inline void Mutex_Release(tMutex *m) { *m = 0; } - 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 intptr_t MM_GetPhysAddr(void *Ptr) { return 1; } + #endif