page.h (c95baf12f5077419db01313ab61c2aac007d40cd) | page.h (c62da0c35d58518ddb26ff641d2485596567fd96) |
---|---|
1/* 2 * include/asm-xtensa/page.h 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version2 as 6 * published by the Free Software Foundation. 7 * 8 * Copyright (C) 2001 - 2007 Tensilica Inc. --- 189 unchanged lines hidden (view full) --- 198 199#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) 200#define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT) 201#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) 202#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) 203 204#endif /* __ASSEMBLY__ */ 205 | 1/* 2 * include/asm-xtensa/page.h 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version2 as 6 * published by the Free Software Foundation. 7 * 8 * Copyright (C) 2001 - 2007 Tensilica Inc. --- 189 unchanged lines hidden (view full) --- 198 199#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) 200#define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT) 201#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) 202#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) 203 204#endif /* __ASSEMBLY__ */ 205 |
206#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ 207 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 208 | |
209#include <asm-generic/memory_model.h> 210#endif /* _XTENSA_PAGE_H */ | 206#include <asm-generic/memory_model.h> 207#endif /* _XTENSA_PAGE_H */ |