From 07ad8d11cae1dadb11b753185a57449cd7489159 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 21 Sep 2009 16:07:34 +0000 Subject: [PATCH] 2009-09-21 Ken Werner * spu/getpagesize.c: Align getpagesize implementation to POSIX --- libgloss/ChangeLog | 4 ++++ libgloss/spu/getpagesize.c | 10 ++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 61c3e6ffa..e59f0aa23 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2009-09-21 Ken Werner + + * spu/getpagesize.c: Align getpagesize implementation to POSIX + 2009-09-16 Mike Frysinger * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, diff --git a/libgloss/spu/getpagesize.c b/libgloss/spu/getpagesize.c index 423e0eddf..417426cdd 100644 --- a/libgloss/spu/getpagesize.c +++ b/libgloss/spu/getpagesize.c @@ -34,15 +34,9 @@ #include #include "jsre.h" -size_t +int getpagesize (void) { - int sys; - - /* - * linux/ppc has int getpagesize(void), but even if size_t were 8 bytes - * we are OK since we are converting the int returned from - * __send_to_ppe. - */ + vector unsigned int sys; return __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_GETPAGESIZE, &sys); }