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/proc.h>
#include <aux/elf.h>
@@ -58,6 +59,7 @@ struct proc* proc_from_elf (uint8_t* elf_contents) {
proc->pdata.regs.rflags = 0x202;
proc->pdata.regs.cs = GDT_UCODE | 0x03;
proc->pdata.regs.rip = aux.entry;
fx_init (proc->pdata.fx_env);
proc->exec_pid = -1;
@@ -98,6 +100,7 @@ struct proc* proc_clone (struct proc* proto, uintptr_t vstack_top, uintptr_t ent
proc->pdata.regs.rflags = 0x202;
proc->pdata.regs.cs = GDT_UCODE | 0x03;
proc->pdata.regs.rip = (uint64_t)entry;
fx_init (proc->pdata.fx_env);
proc->uvaddr_argument = argument_ptr;