Major refactor of codebase

This commit is contained in:
ssimnb 2026-02-14 18:11:37 +01:00
parent dbc6dc0d7c
commit f478f8d38b
125 changed files with 195 additions and 29519 deletions

View file

@ -0,0 +1,27 @@
#include <sys/acpi.h>
#include <arch/amd64/hal/ioapic.h>
#include <arch/amd64/hal/apic.h>
#include <drivers/pmt.h>
#include <arch/amd64/hal/timer.h>
#include <kprint.h>
#include <neobbo.h>
/* Determines which timer will be used for calibration */
int calibration_timer = -1;
void timer_init(void){
if(pmt_init() == -1){
klog(__func__, "PMT Timer not found, falling back");
/* Fall back to PIT */
}else{
calibration_timer = PMT;
}
}
void sleep(int ms){
/* Eventually fix this */
apic_sleep(ms);
}