summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--kernel/kernel.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6fedeea..8b323f9 100644
--- a/README.md
+++ b/README.md
@@ -80,6 +80,7 @@ Some might be disabled temporarily due to conflicts or regressions.
Todos
-----
+* allow GRUB as bootloader (multiboot spec)
* set up os-specific toolchain!
* use linker script!
* more syscalls
diff --git a/kernel/kernel.c b/kernel/kernel.c
index fe9ffa9..128f5dd 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -1,3 +1,13 @@
+/*
+ * in freestanding mode we can just use this c lib headers
+ * stdbool,sddef,stdint,
+ * float,iso646,limits,stdarg
+ */
+
+#ifdef __linux__
+#error "watchout! this is not linux but FoolOS. Use a cross-compiler"
+#endif
+
#define FOOLOS_MODULE_NAME "kernel"
#include "config.h"
#include "asm/asm.h"