Implement SSE instructions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <amd64/apic.h>
|
||||
#include <amd64/fx.h>
|
||||
#include <amd64/gdt.h>
|
||||
#include <amd64/intr.h>
|
||||
#include <amd64/intr_defs.h>
|
||||
@@ -161,7 +162,8 @@ static void intr_exception (struct saved_regs* regs) {
|
||||
regs->rbx);
|
||||
|
||||
if (regs->cs == (GDT_UCODE | 0x03)) {
|
||||
struct reschedule_ctx rctx = {0};
|
||||
struct reschedule_ctx rctx;
|
||||
memset (&rctx, 0, sizeof (rctx));
|
||||
proc_kill (thiscpu->proc_current, &rctx);
|
||||
|
||||
bool do_thiscpu = false;
|
||||
@@ -196,6 +198,9 @@ void intr_handler (void* stack_ptr) {
|
||||
if (proc_current != NULL) {
|
||||
spin_lock (&proc_current->lock);
|
||||
memcpy (&proc_current->pdata.regs, regs, sizeof (struct saved_regs));
|
||||
|
||||
fx_save (proc_current->pdata.fx_env);
|
||||
|
||||
spin_unlock (&proc_current->lock);
|
||||
}
|
||||
|
||||
@@ -208,7 +213,8 @@ void intr_handler (void* stack_ptr) {
|
||||
if (irq == NULL)
|
||||
return;
|
||||
|
||||
struct reschedule_ctx rctx = {0};
|
||||
struct reschedule_ctx rctx;
|
||||
memset (&rctx, 0, sizeof (rctx));
|
||||
irq->func (irq->arg, stack_ptr, &rctx);
|
||||
|
||||
bool do_thiscpu = false;
|
||||
|
||||
Reference in New Issue
Block a user