kernel: add some basic features

+ feat list:
+ * gdt/idt
+ * brokie pmm
This commit is contained in:
RaphProductions 2025-05-18 15:54:12 +02:00
parent a1e27c2730
commit 89bb8c8a4b
31 changed files with 854 additions and 23 deletions

View file

@ -1,7 +1,21 @@
/*
* The Soaplin Kernel
* Copyright (C) 2025 The SILD Project
*
* cpu.c - x86_64 CPU control implementation.
*/
#if defined (__x86_64__)
#include <arch/x86_64/gdt.h>
#include <arch/x86_64/idt.h>
#include <arch/cpu.h>
void arch_init_stage1() {
gdt_init();
idt_init();
}
void hcf() {
asm ("cli");
for (;;) {