From 5cddb717525c460acd162bed4d05ec34bd7afb04 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Wed, 8 Nov 2017 12:26:37 +0000 Subject: [PATCH] Run "none" kernel --- Makefile | 3 ++- arch/none/main.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e830f79..1d341fe 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ export MODULES = $(addprefix $(shell pwd)/modules/, dummy1.bin dummy2.bin) export CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra -I $(INCLUDE) ifeq (none, $(ARCH)) -run: test +run: all-kernel + @$(KERNEL) else run: run-iso endif diff --git a/arch/none/main.c b/arch/none/main.c index 905869d..b217b0d 100644 --- a/arch/none/main.c +++ b/arch/none/main.c @@ -1,4 +1,8 @@ +#include + int main() { + printf("Hello, World\n"); + return 0; }