implement basic multitasking
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user