diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-07-22 03:19:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-07-22 03:19:23 +0000 |
commit | 2775fdb5129c5fc7609ac426332f402864205278 (patch) | |
tree | b6a7e9d467cf15e196baab9726c92d49ee6d3447 | |
parent | b72e048f190dba7202751d8c27508f82e015ebad (diff) | |
download | glibc-2775fdb5129c5fc7609ac426332f402864205278.tar.gz glibc-2775fdb5129c5fc7609ac426332f402864205278.tar.xz glibc-2775fdb5129c5fc7609ac426332f402864205278.zip |
Update.
* sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of stmxcsr and ldmxcsr.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/i386/fpu/feenablxcpt.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 87cc44553e..636f72cdf3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-07-21 Ulrich Drepper <drepper@redhat.com> + * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of + stmxcsr and ldmxcsr. + * Makerules (build-module-helper): Add -z defs unless explicitly said not to do it. * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs diff --git a/sysdeps/i386/fpu/feenablxcpt.c b/sysdeps/i386/fpu/feenablxcpt.c index a000d02d35..8bf8bd9ec1 100644 --- a/sysdeps/i386/fpu/feenablxcpt.c +++ b/sysdeps/i386/fpu/feenablxcpt.c @@ -44,11 +44,11 @@ feenableexcept (int excepts) unsigned int xnew_exc; /* Get the current control word. */ - __asm__ ("ldmxcsr %0" : "=m" (*&xnew_exc)); + __asm__ ("stmxcsr %0" : "=m" (*&xnew_exc)); xnew_exc &= ~(excepts << 7); - __asm__ ("stmxcsr %0" : : "m" (*&xnew_exc)); + __asm__ ("ldmxcsr %0" : : "m" (*&xnew_exc)); } return old_exc; |