Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / AcessNative / acesskernel_src / include / arch.h
index e985789..e99948c 100644 (file)
@@ -4,10 +4,11 @@
 #define _ARCH_H_
 
 #include <stdint.h>
-#include <stdlib.h>
-
+//#include <stdlib.h>
+#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;
@@ -25,13 +26,24 @@ typedef intptr_t    Uint;
 typedef intptr_t       tVAddr;
 typedef intptr_t       tPAddr;
 
+typedef        int     BOOL;
+
+#include <stddef.h>
+#undef offsetof
+
 struct sShortSpinlock
 {
-        int    Lock;
+       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
 

UCC git Repository :: git.ucc.asn.au