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>
|
|
|
|
|
|
2022-12-28 18:40:41 +00:00
|
|
|
static ml_cpu_block g_bootstrap_cpu = {0};
|
2022-12-24 10:28:41 +00:00
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
{
|
2023-02-03 20:24:27 +00:00
|
|
|
ml_init(arg);
|
2022-12-21 08:29:33 +00:00
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|