Rev 1163 | Rev 1399 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1163 | Rev 1398 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | #define NULL 0 |
32 | #define NULL 0 |
33 | 33 | ||
34 | typedef signed char __s8; |
34 | typedef signed char __s8; |
35 | typedef signed short __s16; |
35 | typedef signed short __s16; |
36 | typedef signed long __s32; |
36 | typedef signed int __s32; |
37 | typedef signed long long __s64; |
37 | typedef signed long __s64; |
38 | 38 | ||
39 | typedef unsigned char __u8; |
39 | typedef unsigned char __u8; |
40 | typedef unsigned short __u16; |
40 | typedef unsigned short __u16; |
41 | typedef unsigned int __u32; |
41 | typedef unsigned int __u32; |
42 | typedef unsigned long __u64; |
42 | typedef unsigned long __u64; |
43 | 43 | ||
44 | typedef __u64 __address; |
44 | typedef __u64 __address; |
45 | typedef __u32 pfn_t; |
45 | typedef __u64 pfn_t; |
46 | 46 | ||
47 | typedef __u64 ipl_t; |
47 | typedef __u64 ipl_t; |
48 | 48 | ||
49 | typedef __u64 __native; |
49 | typedef __u32 __native; |
50 | 50 | ||
- | 51 | /** Page Table Entry. */ |
|
51 | typedef __u32 pte_t; |
52 | typedef struct { |
- | 53 | unsigned p : 1; /**< Present bit. */ |
|
- | 54 | unsigned a : 1; /**< Accessed bit. */ |
|
- | 55 | unsigned g : 1; /**< Global bit. */ |
|
- | 56 | unsigned valid : 1; /**< Valid content even if not present. */ |
|
- | 57 | unsigned pfn : 20; /**< Physical frame number. */ |
|
- | 58 | } pte_t; |
|
52 | 59 | ||
53 | #endif |
60 | #endif |