diff options
| author | Jake Mannens <jake72360@gmail.com> | 2018-06-20 04:39:25 +1000 |
|---|---|---|
| committer | Jake Mannens <jake72360@gmail.com> | 2018-06-20 04:39:25 +1000 |
| commit | a4ea0b14840ef5946408a3893f3f1c92ed57ae80 (patch) | |
| tree | 0290ff480f8d9156b6bfcd35d009028e08cb5041 /include | |
| parent | f6858b7333139441215e83e070e098bf09056762 (diff) | |
Added a very basic types.h header file that defines NULL, size_t and
time_t.
Moved the kernel's loading point down to address 0 in
conventional memory and updated linker scripts accordingly.
Began to experiment with loading a binary blob into extended memory
(0x100000), switching to userspace mode, and executing it.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdarg.h | 6 | ||||
| -rw-r--r-- | include/stdbool.h | 6 | ||||
| -rw-r--r-- | include/stdint.h | 6 | ||||
| -rw-r--r-- | include/sys/types.h | 20 |
4 files changed, 20 insertions, 18 deletions
diff --git a/include/stdarg.h b/include/stdarg.h index 8eb1341..fad14cc 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -1,9 +1,3 @@ -/* - * stdarg.h - * - * Provides va_list and associated functions - */ - #ifndef _STDARG_H #define _STDARG_H diff --git a/include/stdbool.h b/include/stdbool.h index f96b223..84950f3 100644 --- a/include/stdbool.h +++ b/include/stdbool.h @@ -1,9 +1,3 @@ -/* - * stdbool.h - * - * Defines bool, true and false - */ - #ifndef _STDBOOL_H #define _STDBOOL_H diff --git a/include/stdint.h b/include/stdint.h index 3dc068e..544f83c 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -1,9 +1,3 @@ -/* - * stdint.h - * - * Common integer types - */ - #ifndef _STDINT_H #define _STDINT_H diff --git a/include/sys/types.h b/include/sys/types.h new file mode 100644 index 0000000..ace1a62 --- /dev/null +++ b/include/sys/types.h @@ -0,0 +1,20 @@ +#ifndef _SYS_TYPES_H +#define _SYS_TYPES_H + +#include <stdint.h> + +#ifndef NULL +#define NULL ((void*) 0) +#endif + +#ifndef _SIZE_T +#define _SIZE_T +typedef uint32_t size_t; +#endif + +#ifndef _TIME_T +#define _TIME_T +typedef int32_t time_t; +#endif + +#endif |
