page.h (31875a5432248e7b0fff2f4f4e8cd96e5d82ceb0) page.h (2e96e04d25caaca8039ba9561e7e02ee8a192553)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1994 - 1999, 2000, 03 Ralf Baechle
7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 */

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

244 : 0); \
245})
246
247#endif
248
249#define virt_to_pfn(kaddr) PFN_DOWN(virt_to_phys((void *)(kaddr)))
250#define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
251
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1994 - 1999, 2000, 03 Ralf Baechle
7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 */

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

244 : 0); \
245})
246
247#endif
248
249#define virt_to_pfn(kaddr) PFN_DOWN(virt_to_phys((void *)(kaddr)))
250#define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
251
252extern bool __virt_addr_valid(const volatile void *kaddr);
252extern int __virt_addr_valid(const volatile void *kaddr);
253#define virt_addr_valid(kaddr) \
254 __virt_addr_valid((const volatile void *) (kaddr))
255
256#define VM_DATA_DEFAULT_FLAGS \
257 (VM_READ | VM_WRITE | \
258 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
259 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
260
253#define virt_addr_valid(kaddr) \
254 __virt_addr_valid((const volatile void *) (kaddr))
255
256#define VM_DATA_DEFAULT_FLAGS \
257 (VM_READ | VM_WRITE | \
258 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
259 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
260
261#define UNCAC_ADDR(addr) (UNCAC_BASE + __pa(addr))
262#define CAC_ADDR(addr) ((unsigned long)__va((addr) - UNCAC_BASE))
263
264#include <asm-generic/memory_model.h>
265#include <asm-generic/getorder.h>
266
267#endif /* _ASM_PAGE_H */
261#include <asm-generic/memory_model.h>
262#include <asm-generic/getorder.h>
263
264#endif /* _ASM_PAGE_H */