[PATCH] PPC64 fe_nomask.c
Steven Munroe
sjmunroe@us.ibm.com
Wed Jan 29 00:17:00 GMT 2003
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
-------------- next part --------------
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;
}
More information about the Libc-alpha
mailing list