page.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) page.h (c62da0c35d58518ddb26ff641d2485596567fd96)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Page management definitions for the Hexagon architecture
4 *
5 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
6 */
7
8#ifndef _ASM_PAGE_H

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

88
89/* The "page frame" descriptor is defined in linux/mm.h */
90struct page;
91
92/* Returns page frame descriptor for virtual address. */
93#define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(__pa(kaddr)))
94
95/* Default vm area behavior is non-executable. */
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Page management definitions for the Hexagon architecture
4 *
5 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
6 */
7
8#ifndef _ASM_PAGE_H

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

88
89/* The "page frame" descriptor is defined in linux/mm.h */
90struct page;
91
92/* Returns page frame descriptor for virtual address. */
93#define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(__pa(kaddr)))
94
95/* Default vm area behavior is non-executable. */
96#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | \
97 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
96#define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_NON_EXEC
98
99#define pfn_valid(pfn) ((pfn) < max_mapnr)
100#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
101
102/* Need to not use a define for linesize; may move this to another file. */
103static inline void clear_page(void *page)
104{
105 /* This can only be done on pages with L1 WB cache */

--- 45 unchanged lines hidden ---
97
98#define pfn_valid(pfn) ((pfn) < max_mapnr)
99#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
100
101/* Need to not use a define for linesize; may move this to another file. */
102static inline void clear_page(void *page)
103{
104 /* This can only be done on pages with L1 WB cache */

--- 45 unchanged lines hidden ---