kernel: whatever changes i didn't keep track of lol

This commit is contained in:
Raphaël M. 2025-06-01 22:45:43 +02:00
parent b2cf9b4710
commit edbb5d106d
67 changed files with 340 additions and 88 deletions

4
kernel/src/arch/x86_64/cpu.c Normal file → Executable file
View file

@ -29,6 +29,10 @@ void cpu_invalidate_page(uint64_t vaddr) {
asm volatile ( "invlpg (%0)" : : "b"(vaddr) : "memory" );
}
void cpu_enable_ints(int enabled) {
if (enabled) asm("sti"); else asm("cli");
}
void hcf() {
asm ("cli");
for (;;) {