Implemented GDT initialisation
This commit is contained in:
12
init/main.c
12
init/main.c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user