page.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) page.h (c62da0c35d58518ddb26ff641d2485596567fd96)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * OpenRISC Linux
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

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

81#define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
82
83#define pfn_valid(pfn) ((pfn) < max_mapnr)
84
85#define virt_addr_valid(kaddr) (pfn_valid(virt_to_pfn(kaddr)))
86
87#endif /* __ASSEMBLY__ */
88
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * OpenRISC Linux
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

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

81#define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
82
83#define pfn_valid(pfn) ((pfn) < max_mapnr)
84
85#define virt_addr_valid(kaddr) (pfn_valid(virt_to_pfn(kaddr)))
86
87#endif /* __ASSEMBLY__ */
88
89
90#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
91 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
92
93
94#include <asm-generic/memory_model.h>
95#include <asm-generic/getorder.h>
96
97#endif /* __ASM_OPENRISC_PAGE_H */
89#include <asm-generic/memory_model.h>
90#include <asm-generic/getorder.h>
91
92#endif /* __ASM_OPENRISC_PAGE_H */