2022-12-21 08:29:33 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <socks/libc/stdio.h>
|
|
|
|
|
#include <socks/init.h>
|
|
|
|
|
#include <socks/console.h>
|
|
|
|
|
#include <socks/machine/init.h>
|
2022-12-24 10:28:41 +00:00
|
|
|
#include <socks/machine/cpu.h>
|
|
|
|
|
|
|
|
|
|
static ml_cpu_block g_bootstrap_cpu = {};
|
|
|
|
|
|
|
|
|
|
void bootstrap_cpu_init(void)
|
|
|
|
|
{
|
|
|
|
|
ml_cpu_block_init(&g_bootstrap_cpu);
|
|
|
|
|
ml_cpu_block_use(&g_bootstrap_cpu);
|
|
|
|
|
}
|
2022-12-21 08:29:33 +00:00
|
|
|
|
|
|
|
|
void kernel_init(uintptr_t arg)
|
|
|
|
|
{
|
2022-12-24 10:28:41 +00:00
|
|
|
bootstrap_cpu_init();
|
2022-12-21 08:29:33 +00:00
|
|
|
console_init();
|
|
|
|
|
|
2022-12-24 10:28:41 +00:00
|
|
|
for (int i = 0; i < 8; i++) {
|
2022-12-21 08:29:33 +00:00
|
|
|
printf("Line %d\n", i);
|
|
|
|
|
}
|
|
|
|
|
}
|