This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] PPC64 fe_nomask.c
- From: Steven Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com
- Cc: Franz dot Sirl-kernel at lauterback dot com
- Date: Tue, 28 Jan 2003 17:10:50 -0600
- Subject: Re: [PATCH] PPC64 fe_nomask.c
- Organization: IBM Linux Developement
- Reply-to: sjmunroe at vnet dot ibm dot com
Roland McGrath write:
> You might as well use INLINE_SYSCALL just because. But that will still use
> __syscall_prctl on any platform that doesn't have INLINE_SYSCALL (though
> maybe they all do now?). If libm needs to refer to __prctl or
> __syscall_prctl in libc, the name can be exported in GLIBC_PRIVATE.
It seems fe_nomask.c(__fe_nomask_env) is unique to powerpc and powerpc64
has its own implementation for now. So INLINE_SYSCALL seems like the
cleanest solution. This will also work for powerpc32 when they are
ready.
2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
(__fe_nomask_env): Change __prctl call to INLINE_SYSCALL.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
diff -urN libc23-cvstip-20030128/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c libc23/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
--- libc23-cvstip-20030128/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c Mon Jan 27 23:35:35 2003
+++ libc23/sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c Tue Jan 28 16:51:54 2003
@@ -19,12 +19,14 @@
#include <fenv.h>
#include <errno.h>
+#include <sysdep.h>
+#include <sys/syscall.h>
#include <sys/prctl.h>
const fenv_t *
__fe_nomask_env (void)
{
- __prctl (PR_SET_FPEXC, PR_FP_EXC_PRECISE);
+ INLINE_SYSCALL (prctl, 2, (PR_SET_FPEXC), (PR_FP_EXC_PRECISE));
return FE_ENABLED_ENV;
}