mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
cpu: make timer irq use ist1
This commit is contained in:
+11
-1
@@ -3,8 +3,10 @@
|
||||
#include <cpuid.h>
|
||||
#include <arch/cls.h>
|
||||
#include <stdio.h>
|
||||
#include <kernel/pmm.h>
|
||||
#include <arch/idt.h>
|
||||
|
||||
// initialises things like
|
||||
// initializes things like
|
||||
// syscall, sse, etc
|
||||
// for the current cpu
|
||||
|
||||
@@ -48,4 +50,12 @@ void cpu_state_init(){
|
||||
"or $0b11000000000, %%rax;"
|
||||
"mov %%rax, %%cr4;"
|
||||
: : : "rax");
|
||||
|
||||
// set up interrupt stacks
|
||||
|
||||
// timer stack is 1
|
||||
|
||||
arch_getcls()->ist.ist1 = pmm_hhdmalloc(10) + PAGE_SIZE*10;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user