d67b67347058deb0739efe8a6f5baac04a9cd179
[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
10 #define _MODULE_NAME_   "NativeKernel"
11
12 #define BITS    (sizeof(intptr_t)*8)
13
14 typedef uint8_t Uint8;
15 typedef uint16_t        Uint16;
16 typedef uint32_t        Uint32;
17 typedef uint64_t        Uint64;
18
19 typedef int8_t  Sint8;
20 typedef int16_t Sint16;
21 typedef int32_t Sint32;
22 typedef int64_t Sint64;
23
24 typedef intptr_t        Uint;
25
26 typedef intptr_t        tVAddr;
27 typedef intptr_t        tPAddr;
28
29 struct sShortSpinlock
30 {
31          int    IsValid;
32         pthread_mutex_t Mutex;
33 };
34
35 #define SHORTLOCK(...)
36 #define SHORTREL(...)
37
38 #endif
39

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