Rev 3070 | Rev 3779 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3070 | Rev 3092 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | typedef uint32_t ipl_t; |
55 | typedef uint32_t ipl_t; |
56 | 56 | ||
57 | typedef uint32_t unative_t; |
57 | typedef uint32_t unative_t; |
58 | typedef int32_t native_t; |
58 | typedef int32_t native_t; |
59 | 59 | ||
60 | /**< Formats for uintptr_t, size_t, count_t and index_t */ |
60 | #define PRIp "x" /**< Format for uintptr_t. */ |
61 | #define PRIp "x" |
- | |
62 | #define PRIs "u" |
61 | #define PRIs "u" /**< Format for size_t. */ |
63 | #define PRIc "u" |
62 | #define PRIc "u" /**< Format for count_t. */ |
64 | #define PRIi "u" |
63 | #define PRIi "u" /**< Format for index_t. */ |
65 | 64 | ||
66 | /**< Formats for (u)int8_t, (u)int16_t, (u)int32_t, (u)int64_t and (u)native_t */ |
- | |
67 | #define PRId8 "d" |
65 | #define PRId8 "d" /**< Format for int8_t. */ |
68 | #define PRId16 "d" |
66 | #define PRId16 "d" /**< Format for int16_t. */ |
69 | #define PRId32 "d" |
67 | #define PRId32 "d" /**< Format for int32_t. */ |
70 | #define PRId64 "lld" |
68 | #define PRId64 "lld" /**< Format for int64_t. */ |
71 | #define PRIdn "d" |
69 | #define PRIdn "d" /**< Format for native_t. */ |
72 | 70 | ||
73 | #define PRIu8 "u" |
71 | #define PRIu8 "u" /**< Format for uint8_t. */ |
74 | #define PRIu16 "u" |
72 | #define PRIu16 "u" /**< Format for uint16_t. */ |
75 | #define PRIu32 "u" |
73 | #define PRIu32 "u" /**< Format for uint32_t. */ |
76 | #define PRIu64 "llu" |
74 | #define PRIu64 "llu" /**< Format for uint64_t. */ |
77 | #define PRIun "u" |
75 | #define PRIun "u" /**< Format for unative_t. */ |
78 | 76 | ||
79 | #define PRIx8 "x" |
77 | #define PRIx8 "x" /**< Format for hexadecimal (u)int8_t. */ |
80 | #define PRIx16 "x" |
78 | #define PRIx16 "x" /**< Format for hexadecimal (u)int16_t. */ |
81 | #define PRIx32 "x" |
79 | #define PRIx32 "x" /**< Format for hexadecimal (u)uint32_t. */ |
82 | #define PRIx64 "llx" |
80 | #define PRIx64 "llx" /**< Format for hexadecimal (u)int64_t. */ |
83 | #define PRIxn "x" |
81 | #define PRIxn "x" /**< Format for hexadecimal (u)native_t. */ |
84 | 82 | ||
85 | /** Page Table Entry. */ |
83 | /** Page Table Entry. */ |
86 | typedef struct { |
84 | typedef struct { |
87 | unsigned present : 1; |
85 | unsigned present : 1; |
88 | unsigned writeable : 1; |
86 | unsigned writeable : 1; |