diff options
author | Sigrid <ftrvxmtrx@gmail.com> | 2020-12-06 19:31:56 +0100 |
---|---|---|
committer | Sigrid <ftrvxmtrx@gmail.com> | 2020-12-06 19:31:56 +0100 |
commit | 334c5e1134719a02c35c72ec5435a967a74846f8 (patch) | |
tree | 6a81a47f847e9025945a5ac4ef3c6ebba07fc721 /sys/src/9/pc64/main.c | |
parent | 66b6185845e85258f1408271d5f705aacfa6ffdb (diff) |
amd64: FP: always use enough to fit AVX state and align to 64 bytes
Diffstat (limited to 'sys/src/9/pc64/main.c')
-rw-r--r-- | sys/src/9/pc64/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc64/main.c b/sys/src/9/pc64/main.c index 4026ee151..803799ab9 100644 --- a/sys/src/9/pc64/main.c +++ b/sys/src/9/pc64/main.c @@ -488,7 +488,7 @@ mathemu(Ureg *ureg, void*) up->fpstate |= FPkernel; } while(up->fpslot[index] == nil) - up->fpslot[index] = mallocalign(m->fpsavesz, m->fpalign, 0, 0); + up->fpslot[index] = mallocalign(m->fpsavesz, FPalign, 0, 0); up->fpsave = up->fpslot[index]; up->fpstate = FPactive | (up->fpstate & (FPnouser|FPkernel|FPindexm)); break; @@ -574,7 +574,7 @@ procfork(Proc *p) case FPinactive | FPpush: case FPinactive: while(p->fpslot[0] == nil) - p->fpslot[0] = mallocalign(m->fpsavesz, m->fpalign, 0, 0); + p->fpslot[0] = mallocalign(m->fpsavesz, FPalign, 0, 0); memmove(p->fpsave = p->fpslot[0], up->fpslot[0], m->fpsavesz); p->fpstate = FPinactive; } |