From a4ea0b14840ef5946408a3893f3f1c92ed57ae80 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 20 Jun 2018 04:39:25 +1000 Subject: 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. --- include/sys/types.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/sys/types.h (limited to 'include/sys') 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 + +#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 -- cgit v1.3