kernel: add basic console registration system and printk()
This commit is contained in:
@@ -2,12 +2,15 @@
|
||||
#include <socks/init.h>
|
||||
#include <socks/printk.h>
|
||||
#include <socks/machine/init.h>
|
||||
#include <socks/machine/cpu.h>
|
||||
|
||||
extern unsigned long get_rflags(void);
|
||||
|
||||
void kernel_init(uintptr_t arg)
|
||||
{
|
||||
ml_init(arg);
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
printk("Line %d\n", i);
|
||||
}
|
||||
printk("hello, world!");
|
||||
|
||||
ml_halt_cpu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user