1 #include "tests/sys_mman.h"
5 #if defined(__powerpc64__) && _CALL_ELF != 2
6 /* on ppc64-linux, a function pointer points to a function
7 descriptor, not to the function's entry point. Hence to get
8 uniform behaviour on all supported targets - a jump to an
9 unmapped page - the following is needed. */
10 unsigned long long int p
[3];
11 p
[0] = (unsigned long long int)get_unmapped_page();
15 char* p
= get_unmapped_page();
17 return ((int(*)(void)) p
) ();