Kernel - Fix compilation on x86_64 and armv7 (for MM changes)
[tpg/acess2.git] / KernelLand / Kernel / arch / x86_64 / include / arch.h
index bde7abd..ec7444c 100644 (file)
 #define BITS   64
 #define PAGE_SIZE      0x1000
 
+#ifndef MAX_CPUS
+# define MAX_CPUS      8
+#endif
+
 #define STACKED_LOCKS  2       // 0: No, 1: Per-CPU, 2: Per-Thread
 #define LOCK_DISABLE_INTS      0
 
@@ -39,7 +43,6 @@ typedef Uint64        Uint;
 typedef Uint64 tPAddr;
 typedef Uint64 tVAddr;
 
-typedef Uint64 size_t;
 typedef char   BOOL;
 
 #define __ASM__        __asm__ __volatile__
@@ -102,8 +105,5 @@ extern void SHORTREL(struct sShortSpinlock *Lock);
 extern void    Debug_PutCharDebug(char ch);
 extern void    Debug_PutStringDebug(const char *Str);
 
-// TODO: Move this to acess.h
-extern tPAddr  MM_AllocateZero(tVAddr VAddr);
-
 #endif
 

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