mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
initialize sse state in new tasks (seems to hang later on fxrstor still)
This commit is contained in:
@@ -175,6 +175,7 @@ struct Task *new_ktask(void(*fn), char *name) {
|
||||
new->frame.ip = (uint64_t) fn;
|
||||
new->frame.cs = GDTSEL(gdt_code);
|
||||
new->frame.ss = GDTSEL(gdt_data);
|
||||
__builtin_ia32_fxsave64((void *) (((uintptr_t) (new->frame.ssestate) + 32) & 0xFFFFFFFFFFFFFFF0));
|
||||
new->frame.flags = flags();
|
||||
new->frame.guard = IDT_GUARD;
|
||||
new->addressSpace = KERN_AddressSpace;
|
||||
|
||||
Reference in New Issue
Block a user