forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/powerpc/include/asm/page_64.h
....@@ -1,13 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _ASM_POWERPC_PAGE_64_H
23 #define _ASM_POWERPC_PAGE_64_H
34
45 /*
56 * Copyright (C) 2001 PPC64 Team, IBM Corp
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version
10
- * 2 of the License, or (at your option) any later version.
117 */
128
139 #include <asm/asm-const.h>
....@@ -98,11 +94,8 @@
9894 * stack by default, so in the absence of a PT_GNU_STACK program header
9995 * we turn execute permission off.
10096 */
101
-#define VM_STACK_DEFAULT_FLAGS32 (VM_READ | VM_WRITE | VM_EXEC | \
102
- VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
103
-
104
-#define VM_STACK_DEFAULT_FLAGS64 (VM_READ | VM_WRITE | \
105
- VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
97
+#define VM_STACK_DEFAULT_FLAGS32 VM_DATA_FLAGS_EXEC
98
+#define VM_STACK_DEFAULT_FLAGS64 VM_DATA_FLAGS_NON_EXEC
10699
107100 #define VM_STACK_DEFAULT_FLAGS \
108101 (is_32bit_task() ? \