Kernel: initial version

This commit is contained in:
Taku Shimosawa
2011-09-22 18:57:51 +09:00
parent 1b054d6e1e
commit 1311337438
9 changed files with 148 additions and 0 deletions

23
kernel/setup.c Normal file
View File

@@ -0,0 +1,23 @@
#include <kmsg.h>
#include <aal/cpu.h>
#include <aal/debug.h>
extern struct aal_kmsg_buf kmsg_buf;
extern void arch_init(void);
extern void kmsg_init(void);
int main(void)
{
kmsg_init();
kputs("MCK started.\n");
arch_init();
cpu_disable_interrupt();
while (1) {
cpu_halt();
}
return 0;
}