Working kernel written on C and userspace-ready #1

Merged
sonya merged 61 commits from dev into main 2026-05-03 09:13:20 +00:00
Showing only changes of commit f3e60da11d - Show all commits
-2
View File
@@ -53,13 +53,11 @@ void GICCWriteEOIR(UInt32 irqID) {
}
void GICDispatch(ExceptionsType type) {
OSLog("GICDispatch: %d\n", type);
if (type != ExceptionsIRQEl1h && type != ExceptionsIRQEl064) return;
UInt32 irqID = GICCReadIAR() & 0x3FF;
if (irqID == 1023) return; // spurious interrupt
if (irqID == kTimerIRQ) {
OSLog("Timer IRQ\n");
TimerReset(kTimerFrequency);
}