aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/init/init.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-08-22 20:38:48 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-08-22 22:25:57 +0300
commitb235f49f31d11e68019c42f48b6641c37e4c986e (patch)
treea9f9e7960b04ded4df61cac9a029d0c30e2d6199 /arch/riscv/init/init.c
parentf05aaa0561e071a54785ae7dfae3d8a34c9df06a (diff)
downloadkmi-b235f49f31d11e68019c42f48b6641c37e4c986e.tar.gz
kmi-b235f49f31d11e68019c42f48b6641c37e4c986e.zip
Integrated libfdt
+ Added new common/ directory, into which code that should be shared with init and kernel is to be added. Currently string.c and bytes.c. Code in common/ should be marked with __weak, so as to allow the arch to implement a better, more optimised version of the function if possible/required. + Created include/apos/types.h with macros essentially providing the libc limits.h and stdint.h. At the moment I use gcc/clang predefined macros for most things.
Diffstat (limited to 'arch/riscv/init/init.c')
-rw-r--r--arch/riscv/init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/init/init.c b/arch/riscv/init/init.c
index 69dbc0a..30c60ac 100644
--- a/arch/riscv/init/init.c
+++ b/arch/riscv/init/init.c
@@ -1,6 +1,6 @@
-#include <stddef.h>
#include <apos/init.h>
#include <apos/sizes.h>
+#include <apos/types.h>
#include <pages.h>
#include <csr.h>
#include <vmap.h>