.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
7 | 4 | */ |
---|
8 | 5 | #ifndef __ASM_ARC_PAGE_H |
---|
9 | 6 | #define __ASM_ARC_PAGE_H |
---|
10 | 7 | |
---|
11 | 8 | #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 */ |
---|
12 | 21 | |
---|
13 | 22 | #ifndef __ASSEMBLY__ |
---|
14 | 23 | |
---|
.. | .. |
---|
106 | 115 | #define virt_addr_valid(kaddr) pfn_valid(virt_to_pfn(kaddr)) |
---|
107 | 116 | |
---|
108 | 117 | /* 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 |
---|
110 | 119 | |
---|
111 | 120 | #define WANT_PAGE_VIRTUAL 1 |
---|
112 | 121 | |
---|