From 44e06b963f3a052913b24f014640e093fdc09991 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 21 Nov 2014 01:46:10 +0100 Subject: added __linux__ check --- README.md | 1 + kernel/kernel.c | 10 ++++++++++ 2 files changed, 11 insertions(+) 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" -- cgit v1.2.3