mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 05:08:22 +00:00
x86_64 cpu: syscall instruction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user