]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/cris/include/arch-v32/arch/page.h
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-focal-kernel.git] / arch / cris / include / arch-v32 / arch / page.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_CRIS_ARCH_PAGE_H
3 #define _ASM_CRIS_ARCH_PAGE_H
4
5
6 #ifdef __KERNEL__
7
8 #define PAGE_OFFSET KSEG_C /* kseg_c is mapped to physical ram. */
9
10 /*
11 * Macros to convert between physical and virtual addresses. By stripping a
12 * selected bit it's possible to convert between KSEG_x and 0x40000000 where the
13 * DRAM really resides. DRAM is virtually at 0xc.
14 */
15 #define __pa(x) ((unsigned long)(x) & 0x7fffffff)
16 #define __va(x) ((void *)((unsigned long)(x) | 0x80000000))
17
18 #define VM_STACK_DEFAULT_FLAGS (VM_READ | VM_WRITE | \
19 VM_MAYREAD | VM_MAYWRITE)
20
21 #endif /* __KERNEL__ */
22
23 #endif /* _ASM_CRIS_ARCH_PAGE_H */