x86_64 cpu: syscall instruction

This commit is contained in:
Matheus
2023-05-07 19:31:36 -03:00
parent 9c1e92831d
commit ca80c22f50
2 changed files with 35 additions and 1 deletions
+3 -1
View File
@@ -12,6 +12,7 @@
#include <kernel/scheduler.h>
typedef struct cpu_t {
thread_t *thread;
uint64_t gdt[7];
ist_t ist;
long id;
@@ -21,7 +22,6 @@ typedef struct cpu_t {
timer_t *timer;
bool intstatus;
long ipl;
thread_t *thread;
thread_t *idlethread;
timerentry_t schedtimerentry;
void *schedulerstack;
@@ -37,4 +37,6 @@ static inline void cpu_set(cpu_t *ptr) {
wrmsr(MSR_GSBASE, (uint64_t)ptr);
}
void cpu_initstate();
#endif