File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tools/testing/selftests/vm Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 32
32
pkey-31 and exec-only key */
33
33
#define PKEY_BITS_PER_PKEY 2
34
34
#define HPAGE_SIZE (1UL << 24)
35
- #define PAGE_SIZE (1UL << 16 )
35
+ #define PAGE_SIZE sysconf(_SC_PAGESIZE )
36
36
37
37
static inline u32 pkey_bit_position (int pkey )
38
38
{
Original file line number Diff line number Diff line change @@ -146,7 +146,12 @@ void abort_hooks(void)
146
146
* will then fault, which makes sure that the fault code handles
147
147
* execute-only memory properly.
148
148
*/
149
+ #ifdef __powerpc64__
150
+ /* This way, both 4K and 64K alignment are maintained */
151
+ __attribute__((__aligned__ (65536 )))
152
+ #else
149
153
__attribute__((__aligned__ (PAGE_SIZE )))
154
+ #endif
150
155
void lots_o_noops_around_write (int * write_to_me )
151
156
{
152
157
dprintf3 ("running %s()\n" , __func__ );
You can’t perform that action at this time.
0 commit comments