Implement SSE instructions
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user