Schedule inside of systick_irq
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <amd64/msr-index.h>
|
||||
#include <amd64/msr.h>
|
||||
#include <amd64/sse.h>
|
||||
#include <amd64/systick.h>
|
||||
#include <aux/compiler.h>
|
||||
#include <device/device.h>
|
||||
#include <device/storage/partitions.h>
|
||||
@@ -62,7 +63,7 @@ void bootmain (void) {
|
||||
|
||||
bsp_cpu->kproc = kproc_create ();
|
||||
|
||||
lapic_init (5000);
|
||||
lapic_init (1000);
|
||||
|
||||
__asm__ volatile ("sti");
|
||||
|
||||
@@ -78,7 +79,7 @@ void bootmain (void) {
|
||||
struct device* temp0 = device_find ("temp0");
|
||||
vfs_create_volume (thiscpu->kproc, &rctx, "temp", FS_FAT16, temp0, true);
|
||||
|
||||
irq_attach (&proc_irq_sched, NULL, INTR_SCHED_PREEMPT_TIMER);
|
||||
irq_attach (&systick_irq, NULL, INTR_SYSTICK);
|
||||
irq_attach (&proc_irq_sched, NULL, INTR_CPU_REQUEST_SCHED);
|
||||
|
||||
smp_init ();
|
||||
|
||||
Reference in New Issue
Block a user