f51353069402581bff63b058ea86cc90ce4a1811
[tpg/acess2.git] / AcessNative / acesskernel_src / include / arch.h
1 /**
2  */
3 #ifndef _ARCH_H_
4 #define _ARCH_H_
5
6 #include <stdint.h>
7 //#include <stdlib.h>
8 #include <pthread.h>
9 #undef CLONE_VM
10 #define _MODULE_NAME_   "NativeKernel"
11
12 #define PAGE_SIZE       0x1000  // Assume, making an Ass out of u and me
13 #define BITS    (sizeof(intptr_t)*8)
14
15 typedef uint8_t Uint8;
16 typedef uint16_t        Uint16;
17 typedef uint32_t        Uint32;
18 typedef uint64_t        Uint64;
19
20 typedef int8_t  Sint8;
21 typedef int16_t Sint16;
22 typedef int32_t Sint32;
23 typedef int64_t Sint64;
24
25 typedef intptr_t        Uint;
26
27 typedef intptr_t        tVAddr;
28 typedef intptr_t        tPAddr;
29
30 typedef int     BOOL;
31
32 struct sShortSpinlock
33 {
34          int    IsValid;
35         pthread_mutex_t Mutex;
36 };
37
38 #define SHORTLOCK(...)
39 #define SHORTREL(...)
40
41 //#define       NUM_CFG_ENTRIES 10
42
43 #endif
44

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