Implemented GDT initialisation

This commit is contained in:
2022-12-24 10:28:41 +00:00
parent 0c0830cca7
commit 26853c32c8
10 changed files with 129 additions and 3 deletions

View File

@@ -3,12 +3,22 @@
#include <socks/init.h>
#include <socks/console.h>
#include <socks/machine/init.h>
#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);
}
void kernel_init(uintptr_t arg)
{
bootstrap_cpu_init();
console_init();
for (int i = 0; i < 20; i++) {
for (int i = 0; i < 8; i++) {
printf("Line %d\n", i);
}
}