[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Mach branch, master, updated. v1.8-229-g261eb7f
From: |
Samuel Thibault |
Subject: |
[SCM] GNU Mach branch, master, updated. v1.8-229-g261eb7f |
Date: |
Sun, 29 Nov 2020 10:24:14 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via 261eb7f1ade265bb359609a796715fa06f4d32fd (commit)
via 5dbc6990b16a969e470392abe48e8ff9552780b3 (commit)
from 231bd7fdc04517389135a4958294cf7630617385 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 261eb7f1ade265bb359609a796715fa06f4d32fd
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Nov 29 16:20:21 2020 +0100
x86: Fix initialization of new threads
fninit does not clear MMX/SSE/AVX registers, so we have to use rstor to
clear them when starting a new thread. Along the way, we can as well
just have a default state to be loaded in each new thread.
* i386/include/mach/i386/fp_reg.h (XSAVE_XCOMP_BV_COMPACT): New macro.
* i386/i386/fpu.h (fp_default_state): New variable declaration.
* i386/i386/fpu.c (fp_default_state): New variable.
(MXCSR_DEFAULT, CWD_DEFAULT): New macros.
(fpu_module_init): Allocate and initialize fp_default_state.
(fpinit): rstor from fp_default_state instead of setting FPU state by
hand.
(fp_load): Copy initial state from fp_default_state instead of setting
it to 0. This is more future-proof since this is the exact state that we are
loading in fpinit.
(fp_state_alloc): fp_state_alloc: Copy initial state from
fp_default_state.
commit 5dbc6990b16a969e470392abe48e8ff9552780b3
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Nov 29 16:10:36 2020 +0100
x86: Factorize fpu save/restore
* i386/i386/fpu.h (fpu_save, fpu_rstor): New macros.
(fpu_save_context): Use fpu_save macro.
* i386/i386/fpu.c (fp_save): Use fpu_save macro.
(fp_load): Use fpu_rstor macro.
-----------------------------------------------------------------------
Summary of changes:
i386/i386/fpu.c | 136 ++++++++++++++--------------------------
i386/i386/fpu.h | 68 +++++++++++++-------
i386/include/mach/i386/fp_reg.h | 1 +
3 files changed, 96 insertions(+), 109 deletions(-)
hooks/post-receive
--
GNU Mach
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Mach branch, master, updated. v1.8-229-g261eb7f,
Samuel Thibault <=