implement basic multitasking

This commit is contained in:
2025-03-31 14:51:33 +03:00
parent 10eb4687f0
commit 9381b4cdb7
6 changed files with 243 additions and 1 deletions
+5
View File
@@ -4,6 +4,7 @@
#include "../include/pic.h"
#include "../include/pit.h"
#include "../include/keyboard.h"
#include "../include/task.h"
#include <stddef.h>
@@ -75,6 +76,10 @@ __attribute__((interrupt)) void isr_timer(struct interrupt_frame *frame)
{
pit_init(100);
pic_end_int(0x0);
scheduler_lock();
schedule();
scheduler_unlock();
}
__attribute__((interrupt)) void isr_custom(struct interrupt_frame *frame)