mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 17:17:39 +01:00
Do not save FPU context on x86 for now; XMM save area must be 16-bytes aligned
This commit is contained in:
parent
ae7eebb839
commit
02d0cb6f71
1 changed files with 7 additions and 0 deletions
|
@ -61,6 +61,7 @@ _Ux86_getcontext:
|
|||
popl FREEBSD_UC_MCONTEXT_EFLAGS_OFF(%eax)
|
||||
|
||||
movl $0, FREEBSD_UC_MCONTEXT_TRAPNO_OFF(%eax)
|
||||
#if 0
|
||||
movl $FREEBSD_UC_MCONTEXT_FPOWNED_FPU,\
|
||||
FREEBSD_UC_MCONTEXT_OWNEDFP_OFF(%eax)
|
||||
movl $FREEBSD_UC_MCONTEXT_FPFMT_XMM,\
|
||||
|
@ -68,6 +69,12 @@ _Ux86_getcontext:
|
|||
|
||||
/* Require CPU with fxsave implemented, and enabled by OS. */
|
||||
fxsave FREEBSD_UC_MCONTEXT_FPSTATE_OFF(%eax)
|
||||
#else
|
||||
movl $FREEBSD_UC_MCONTEXT_FPOWNED_NONE,\
|
||||
FREEBSD_UC_MCONTEXT_OWNEDFP_OFF(%eax)
|
||||
movl $FREEBSD_UC_MCONTEXT_FPFMT_NODEV,\
|
||||
FREEBSD_UC_MCONTEXT_FPFORMAT_OFF(%eax)
|
||||
#endif
|
||||
|
||||
movl $FREEBSD_UC_MCONTEXT_MC_LEN_VAL,\
|
||||
FREEBSD_UC_MCONTEXT_MC_LEN_OFF(%eax)
|
||||
|
|
Loading…
Reference in a new issue