Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/arch/m68k/include Pull up following revision(s) (requ...
details: https://anonhg.NetBSD.org/src/rev/5703c648e753
branches: netbsd-8
changeset: 434312:5703c648e753
user: snj <snj%NetBSD.org@localhost>
date: Sat Sep 23 17:43:15 2017 +0000
description:
Pull up following revision(s) (requested by phx in ticket #286):
sys/arch/m68k/include/fenv.h: revision 1.7
The __fgetenv() macro operates on a fenv_t, not on a fenv_t *.
Fixes a segfault in fegetenv() and feholdexcept().
diffstat:
sys/arch/m68k/include/fenv.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4d9316a5838b -r 5703c648e753 sys/arch/m68k/include/fenv.h
--- a/sys/arch/m68k/include/fenv.h Sat Sep 23 17:39:34 2017 +0000
+++ b/sys/arch/m68k/include/fenv.h Sat Sep 23 17:43:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.h,v 1.6 2017/03/22 23:11:09 chs Exp $ */
+/* $NetBSD: fenv.h,v 1.6.6.1 2017/09/23 17:43:15 snj Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -210,7 +210,7 @@
__fenv_static inline int
fegetenv(fenv_t *__envp)
{
- __fgetenv(__envp);
+ __fgetenv(*__envp);
return 0;
}
@@ -220,7 +220,7 @@
{
fexcept_t __fpcr, __fpsr;
- __fgetenv(__envp);
+ __fgetenv(*__envp);
__fpsr = __envp->fpsr & ~FE_ALL_EXCEPT;
__set_fpsr(__fpsr); /* clear all */
__fpcr = __envp->fpcr & ~(FE_ALL_EXCEPT << 6);
Home |
Main Index |
Thread Index |
Old Index