page.h (c95baf12f5077419db01313ab61c2aac007d40cd) page.h (c62da0c35d58518ddb26ff641d2485596567fd96)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _PARISC_PAGE_H
3#define _PARISC_PAGE_H
4
5#include <linux/const.h>
6
7#if defined(CONFIG_PARISC_PAGE_SIZE_4KB)
8# define PAGE_SHIFT 12

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

175#endif
176#endif /* CONFIG_HUGETLB_PAGE */
177
178#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
179
180#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
181#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
182
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _PARISC_PAGE_H
3#define _PARISC_PAGE_H
4
5#include <linux/const.h>
6
7#if defined(CONFIG_PARISC_PAGE_SIZE_4KB)
8# define PAGE_SHIFT 12

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

175#endif
176#endif /* CONFIG_HUGETLB_PAGE */
177
178#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
179
180#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
181#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
182
183#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
184 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
185
186#include <asm-generic/memory_model.h>
187#include <asm-generic/getorder.h>
188#include <asm/pdc.h>
189
190#define PAGE0 ((struct zeropage *)__PAGE_OFFSET)
191
192/* DEFINITION OF THE ZERO-PAGE (PAG0) */
193/* based on work by Jason Eckhardt (jason@equator.com) */
194
195#endif /* _PARISC_PAGE_H */
183#include <asm-generic/memory_model.h>
184#include <asm-generic/getorder.h>
185#include <asm/pdc.h>
186
187#define PAGE0 ((struct zeropage *)__PAGE_OFFSET)
188
189/* DEFINITION OF THE ZERO-PAGE (PAG0) */
190/* based on work by Jason Eckhardt (jason@equator.com) */
191
192#endif /* _PARISC_PAGE_H */