kernel: port sandbox components

This commit is contained in:
2023-02-03 20:51:23 +00:00
parent 40f83922da
commit 247bb2b530
14 changed files with 16 additions and 85 deletions

View File

@@ -1,23 +1,13 @@
#include <stdint.h>
#include <socks/libc/stdio.h>
#include <socks/init.h>
#include <socks/console.h>
#include <socks/printk.h>
#include <socks/machine/init.h>
#include <socks/machine/cpu.h>
static ml_cpu_block g_bootstrap_cpu = {0};
void bootstrap_cpu_init(void)
{
ml_cpu_block_init(&g_bootstrap_cpu);
ml_cpu_block_use(&g_bootstrap_cpu);
}
void kernel_init(uintptr_t arg)
{
ml_init(arg);
for (int i = 0; i < 8; i++) {
printf("Line %d\n", i);
printk("Line %d\n", i);
}
}