2009-09-21 Ken Werner <ken.werner@de.ibm.com>

* spu/getpagesize.c: Align getpagesize implementation to POSIX
This commit is contained in:
Jeff Johnston 2009-09-21 16:07:34 +00:00
parent cd6dd861a3
commit 07ad8d11ca
2 changed files with 6 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2009-09-21 Ken Werner <ken.werner@de.ibm.com>
* spu/getpagesize.c: Align getpagesize implementation to POSIX
2009-09-16 Mike Frysinger <michael.frysinger@analog.com>
* bfin/include/cdefBF512.h, bfin/include/cdefBF514.h,

View File

@ -34,15 +34,9 @@
#include <unistd.h>
#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);
}