page.h (cc46c03397c1865a181f1a4f66d4645806e5a943) page.h (c62da0c35d58518ddb26ff641d2485596567fd96)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef _ASM_POWERPC_PAGE_H
3#define _ASM_POWERPC_PAGE_H
4
5/*
6 * Copyright (C) 2001,2005 IBM Corporation.
7 */
8

--- 226 unchanged lines hidden (view full) ---

235#endif
236#endif
237
238/*
239 * Unfortunately the PLT is in the BSS in the PPC32 ELF ABI,
240 * and needs to be executable. This means the whole heap ends
241 * up being executable.
242 */
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef _ASM_POWERPC_PAGE_H
3#define _ASM_POWERPC_PAGE_H
4
5/*
6 * Copyright (C) 2001,2005 IBM Corporation.
7 */
8

--- 226 unchanged lines hidden (view full) ---

235#endif
236#endif
237
238/*
239 * Unfortunately the PLT is in the BSS in the PPC32 ELF ABI,
240 * and needs to be executable. This means the whole heap ends
241 * up being executable.
242 */
243#define VM_DATA_DEFAULT_FLAGS32 \
244 (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
245 VM_READ | VM_WRITE | \
246 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
243#define VM_DATA_DEFAULT_FLAGS32 VM_DATA_FLAGS_TSK_EXEC
244#define VM_DATA_DEFAULT_FLAGS64 VM_DATA_FLAGS_NON_EXEC
247
245
248#define VM_DATA_DEFAULT_FLAGS64 (VM_READ | VM_WRITE | \
249 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
250
251#ifdef __powerpc64__
252#include <asm/page_64.h>
253#else
254#include <asm/page_32.h>
255#endif
256
257/* align addr on a size boundary - adjust address up/down if needed */
258#define _ALIGN_UP(addr, size) __ALIGN_KERNEL(addr, size)

--- 86 unchanged lines hidden ---
246#ifdef __powerpc64__
247#include <asm/page_64.h>
248#else
249#include <asm/page_32.h>
250#endif
251
252/* align addr on a size boundary - adjust address up/down if needed */
253#define _ALIGN_UP(addr, size) __ALIGN_KERNEL(addr, size)

--- 86 unchanged lines hidden ---