2009-09-21 Ken Werner <ken.werner@de.ibm.com>
* spu/getpagesize.c: Align getpagesize implementation to POSIX
This commit is contained in:
parent
cd6dd861a3
commit
07ad8d11ca
|
@ -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>
|
2009-09-16 Mike Frysinger <michael.frysinger@analog.com>
|
||||||
|
|
||||||
* bfin/include/cdefBF512.h, bfin/include/cdefBF514.h,
|
* bfin/include/cdefBF512.h, bfin/include/cdefBF514.h,
|
||||||
|
|
|
@ -34,15 +34,9 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "jsre.h"
|
#include "jsre.h"
|
||||||
|
|
||||||
size_t
|
int
|
||||||
getpagesize (void)
|
getpagesize (void)
|
||||||
{
|
{
|
||||||
int sys;
|
vector unsigned 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.
|
|
||||||
*/
|
|
||||||
return __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_GETPAGESIZE, &sys);
|
return __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_GETPAGESIZE, &sys);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue