hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arc/include/asm/page.h
....@@ -1,14 +1,23 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85 #ifndef __ASM_ARC_PAGE_H
96 #define __ASM_ARC_PAGE_H
107
118 #include <uapi/asm/page.h>
9
+
10
+#ifdef CONFIG_ARC_HAS_PAE40
11
+
12
+#define MAX_POSSIBLE_PHYSMEM_BITS 40
13
+#define PAGE_MASK_PHYS (0xff00000000ull | PAGE_MASK)
14
+
15
+#else /* CONFIG_ARC_HAS_PAE40 */
16
+
17
+#define MAX_POSSIBLE_PHYSMEM_BITS 32
18
+#define PAGE_MASK_PHYS PAGE_MASK
19
+
20
+#endif /* CONFIG_ARC_HAS_PAE40 */
1221
1322 #ifndef __ASSEMBLY__
1423
....@@ -106,7 +115,7 @@
106115 #define virt_addr_valid(kaddr) pfn_valid(virt_to_pfn(kaddr))
107116
108117 /* Default Permissions for stack/heaps pages (Non Executable) */
109
-#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
118
+#define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_NON_EXEC
110119
111120 #define WANT_PAGE_VIRTUAL 1
112121