Implement SSE instructions

This commit is contained in:
2026-03-07 17:36:09 +01:00
parent 40bfc1e916
commit 5e616c1879
16 changed files with 80 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
#include <amd64/fx.h>
#include <amd64/gdt.h>
#include <amd64/intr.h>
#include <amd64/mm.h>
@@ -28,6 +29,8 @@ uintptr_t syscall_dispatch (void* stack_ptr) {
memcpy (&caller->pdata.regs, regs, sizeof (struct saved_regs));
fx_save (caller->pdata.fx_env);
spin_unlock (&caller->lock);
spin_unlock (&thiscpu->lock);
@@ -38,7 +41,8 @@ uintptr_t syscall_dispatch (void* stack_ptr) {
return -ST_SYSCALL_NOT_FOUND;
}
struct reschedule_ctx rctx = {0};
struct reschedule_ctx rctx;
memset (&rctx, 0, sizeof (rctx));
uintptr_t r =
func (caller, regs, &rctx, regs->rdi, regs->rsi, regs->rdx, regs->r10, regs->r8, regs->r9);