ApertureOS
types.h
Go to the documentation of this file.
1 #ifndef _OS_TYPES_H_
2 #define _OS_TYPES_H_
3 
4 #include <stddef.h>
5 #include <stdint.h>
6 #include <x86intrin.h>
7 
8 typedef uint64_t UID;
9 typedef UID SysID;
10 
11 typedef void (*Callback)(void*);
12 typedef uint32_t (*Initializer)();
13 typedef int(*ProcessEntryPoint)(int, char**);
14 typedef uint8_t bool;
15 
16 #define TRUE 1
17 #define FALSE 0
18 
19 #define ENABLE 1
20 #define DISABLE 0
21 
22 #define ENABLED 1
23 #define DISABLED 0
24 
25 
26 #define KB(x) (x * 1024)
27 #define MB(x) (KB(1) * 1024 * x)
28 #define GB(x) (uint64_t)(MB(1) * 1024 * x)
29 
30 #endif /* end of include guard: _OS_TYPES_H_ */
uint32_t(* Initializer)()
Definition: types.h:12
uint8_t bool
Definition: types.h:14
uint64_t UID
Definition: types.h:8
void(* Callback)(void *)
Definition: types.h:11
int(* ProcessEntryPoint)(int, char **)
Definition: types.h:13
UID SysID
Definition: types.h:9