diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-06-07 14:41:20 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-06-07 14:41:20 -0500 |
commit | 546a015f74fab0c4e359cf97f289ff26d6481844 (patch) | |
tree | bd2643a5d512af932090fb09748aea8aa8f61521 /src/sys | |
parent | cd86583d084a4227dbf6a7cca2934eaad2b060d1 (diff) | |
download | talos-hostboot-546a015f74fab0c4e359cf97f289ff26d6481844.tar.gz talos-hostboot-546a015f74fab0c4e359cf97f289ff26d6481844.zip |
Create init process, fix scheduler bugs.
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/init/init_main.C | 8 | ||||
-rw-r--r-- | src/sys/init/makefile | 10 | ||||
-rw-r--r-- | src/sys/makefile | 12 |
3 files changed, 30 insertions, 0 deletions
diff --git a/src/sys/init/init_main.C b/src/sys/init/init_main.C new file mode 100644 index 000000000..99a7cfe0b --- /dev/null +++ b/src/sys/init/init_main.C @@ -0,0 +1,8 @@ +#include <kernel/console.H> // TODO : Remove this. + +void init_main(void* unused) +{ + printk("Starting init!\n"); + + while(1); +} diff --git a/src/sys/init/makefile b/src/sys/init/makefile new file mode 100644 index 000000000..4a1ecf48b --- /dev/null +++ b/src/sys/init/makefile @@ -0,0 +1,10 @@ +OBJDIR = ../../../obj +include ../../../config.mk + +OBJS = init_main.o +OBJECTS = $(addprefix ${OBJDIR}/, ${OBJS}) + +all: ${OBJECTS} + +clean: + (rm -f ${OBJECTS} ) diff --git a/src/sys/makefile b/src/sys/makefile new file mode 100644 index 000000000..5a553e1d2 --- /dev/null +++ b/src/sys/makefile @@ -0,0 +1,12 @@ +IMGDIR = ../../img +OBJDIR = ../../obj +include ../../config.mk + +SUBDIRS = init.d +IMAGES += ${IMGDIR}/kernel.elf +IMAGES += ${IMGDIR}/kernel.bin + +all: ${SUBDIRS} + +clean: $(patsubst %.d,%.clean, ${SUBDIRS}) + (rm -f ${IMAGES} ) |