Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git] / KernelLand / Kernel / arch / m68k / include / arch.h
1 /*
2  * Acess2 M68000 port
3  * - By John Hodge (thePowersGang)
4  *
5  * arch/m68k/include/arch.h
6  * - Architectre config
7  */
8 #ifndef _M68K_ARCH_H_
9 #define _M68K_ARCH_H_
10
11 #define INVLPTR ((void*)-1)
12 #define BITS    32
13
14 typedef unsigned long long      Uint64;
15 typedef unsigned long   Uint32;
16 typedef unsigned short  Uint16;
17 typedef unsigned char   Uint8;
18
19 typedef signed long long        Sint64;
20 typedef signed long     Sint32;
21 typedef signed short    Sint16;
22 typedef signed char     Sint8;
23
24 typedef unsigned int    Uint;
25 typedef unsigned int    size_t;
26
27 typedef char    BOOL;
28
29 typedef Uint32  tVAddr;
30 typedef Uint32  tPAddr;
31
32 struct sShortSpinlock
33 {
34         int v;
35 };
36
37 // Non preemptive and no SMP, no need for these
38 #define SHORTLOCK(lock) do{}while(0)
39 #define SHORTREL(lock)  do{}while(0)
40 #define IS_LOCKED(lock) (0)
41 #define CPU_HAS_LOCK(lock)      (0)
42
43 #define Debug_PutCharDebug(ch)  do{}while(0)
44 #define Debug_PutStringDebug(ch)        do{}while(0)
45
46 #define HALT()  do{}while(0)
47
48 #define USER_MAX        0
49
50 #define PAGE_SIZE       0x1000
51
52 #endif
53

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