35,6 → 35,10 |
#ifndef KERN_ia32_TYPES_H_ |
#define KERN_ia32_TYPES_H_ |
|
#define NULL 0 |
#define false 0 |
#define true 1 |
|
typedef signed char int8_t; |
typedef signed short int16_t; |
typedef signed long int32_t; |
46,6 → 50,8 |
typedef unsigned long long uint64_t; |
|
typedef uint32_t size_t; |
typedef uint32_t count_t; |
typedef uint32_t index_t; |
|
typedef uint32_t uintptr_t; |
typedef uint32_t pfn_t; |
55,30 → 61,14 |
typedef uint32_t unative_t; |
typedef int32_t native_t; |
|
typedef struct { |
} fncptr_t; |
typedef uint8_t bool; |
typedef uint64_t thread_id_t; |
typedef uint64_t task_id_t; |
typedef uint32_t context_id_t; |
|
#define PRIp "x" /**< Format for uintptr_t. */ |
#define PRIs "u" /**< Format for size_t. */ |
typedef int32_t inr_t; |
typedef int32_t devno_t; |
|
#define PRId8 "d" /**< Format for int8_t. */ |
#define PRId16 "d" /**< Format for int16_t. */ |
#define PRId32 "d" /**< Format for int32_t. */ |
#define PRId64 "lld" /**< Format for int64_t. */ |
#define PRIdn "d" /**< Format for native_t. */ |
|
#define PRIu8 "u" /**< Format for uint8_t. */ |
#define PRIu16 "u" /**< Format for uint16_t. */ |
#define PRIu32 "u" /**< Format for uint32_t. */ |
#define PRIu64 "llu" /**< Format for uint64_t. */ |
#define PRIun "u" /**< Format for unative_t. */ |
|
#define PRIx8 "x" /**< Format for hexadecimal (u)int8_t. */ |
#define PRIx16 "x" /**< Format for hexadecimal (u)int16_t. */ |
#define PRIx32 "x" /**< Format for hexadecimal (u)uint32_t. */ |
#define PRIx64 "llx" /**< Format for hexadecimal (u)int64_t. */ |
#define PRIxn "x" /**< Format for hexadecimal (u)native_t. */ |
|
/** Page Table Entry. */ |
typedef struct { |
unsigned present : 1; |