Implement SSE instructions
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
#include <amd64/fx.h>
|
||||
#include <amd64/msr-index.h>
|
||||
#include <amd64/msr.h>
|
||||
#include <amd64/sched.h>
|
||||
#include <aux/compiler.h>
|
||||
#include <libk/std.h>
|
||||
#include <libk/string.h>
|
||||
#include <proc/proc.h>
|
||||
#include <sync/spin_lock.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/mm.h>
|
||||
#include <sys/smp.h>
|
||||
|
||||
@@ -16,9 +19,12 @@ void do_sched (struct proc* proc, spin_lock_t* cpu_lock) {
|
||||
wrmsr (MSR_FS_BASE, proc->pdata.fs_base);
|
||||
|
||||
void* cr3 = (void*)proc->procgroup->pd.cr3_paddr;
|
||||
|
||||
struct saved_regs regs;
|
||||
memcpy (®s, &proc->pdata.regs, sizeof (regs));
|
||||
|
||||
fx_restore (proc->pdata.fx_env);
|
||||
|
||||
spin_unlock (&proc->lock);
|
||||
spin_unlock (cpu_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user