This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC64 fe_nomask.c


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;
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]