1 /* 1 2 * arch/xtensa/include/asm/xchal_vaddr_remap.h 3 * 4 * Xtensa macros for MMU V3 Support. Deals wit 5 * Memory Addresses from "Virtual == Physical" 6 * mappings (KSEG at 0xD0000000 and KIO at 0XF 7 * 8 * This file is subject to the terms and condi 9 * License. See the file "COPYING" in the mai 10 * for more details. 11 * 12 * Copyright (C) 2008 - 2012 Tensilica Inc. 13 * 14 * Pete Delaney <piet@tensilica.com> 15 * Marc Gauthier <marc@tensilica.com 16 */ 17 18 #ifndef _XTENSA_VECTORS_H 19 #define _XTENSA_VECTORS_H 20 21 #include <asm/core.h> 22 #include <asm/kmem_layout.h> 23 24 #if defined(CONFIG_MMU) && XCHAL_HAVE_PTP_MMU 25 #ifdef CONFIG_KERNEL_VIRTUAL_ADDRESS 26 #define KERNELOFFSET CONFIG 27 #else 28 #define KERNELOFFSET (CONFI 29 XCHAL 30 XCHAL 31 #endif 32 #else 33 #define KERNELOFFSET CONFIG 34 #endif 35 36 #define RESET_VECTOR1_VADDR (XCHAL 37 #ifdef CONFIG_VECTORS_ADDR 38 #define VECBASE_VADDR (CONFI 39 #else 40 #define VECBASE_VADDR _vecba 41 #endif 42 43 #if XCHAL_HAVE_VECBASE 44 45 #define VECTOR_VADDR(offset) (VECBA 46 47 #define USER_VECTOR_VADDR VECTOR 48 #define KERNEL_VECTOR_VADDR VECTOR 49 #define DOUBLEEXC_VECTOR_VADDR VECTOR 50 #define WINDOW_VECTORS_VADDR VECTOR 51 #define INTLEVEL2_VECTOR_VADDR VECTOR 52 #define INTLEVEL3_VECTOR_VADDR VECTOR 53 #define INTLEVEL4_VECTOR_VADDR VECTOR 54 #define INTLEVEL5_VECTOR_VADDR VECTOR 55 #define INTLEVEL6_VECTOR_VADDR VECTOR 56 #define INTLEVEL7_VECTOR_VADDR VECTOR 57 #define DEBUG_VECTOR_VADDR VECTOR 58 59 /* 60 * These XCHAL_* #defines from varian/core.h 61 * are not valid to use with V3 MMU. Non-XCHAL 62 * constants are defined above and should be u 63 */ 64 #undef XCHAL_VECBASE_RESET_VADDR 65 #undef XCHAL_USER_VECTOR_VADDR 66 #undef XCHAL_KERNEL_VECTOR_VADDR 67 #undef XCHAL_DOUBLEEXC_VECTOR_VADDR 68 #undef XCHAL_WINDOW_VECTORS_VADDR 69 #undef XCHAL_INTLEVEL2_VECTOR_VADDR 70 #undef XCHAL_INTLEVEL3_VECTOR_VADDR 71 #undef XCHAL_INTLEVEL4_VECTOR_VADDR 72 #undef XCHAL_INTLEVEL5_VECTOR_VADDR 73 #undef XCHAL_INTLEVEL6_VECTOR_VADDR 74 #undef XCHAL_INTLEVEL7_VECTOR_VADDR 75 #undef XCHAL_DEBUG_VECTOR_VADDR 76 77 #else 78 79 #define USER_VECTOR_VADDR XCHAL_ 80 #define KERNEL_VECTOR_VADDR XCHAL_ 81 #define DOUBLEEXC_VECTOR_VADDR XCHAL_ 82 #define WINDOW_VECTORS_VADDR XCHAL_ 83 #define INTLEVEL2_VECTOR_VADDR XCHAL_ 84 #define INTLEVEL3_VECTOR_VADDR XCHAL_ 85 #define INTLEVEL4_VECTOR_VADDR XCHAL_ 86 #define INTLEVEL5_VECTOR_VADDR XCHAL_ 87 #define INTLEVEL6_VECTOR_VADDR XCHAL_ 88 #define INTLEVEL7_VECTOR_VADDR XCHAL_ 89 #define DEBUG_VECTOR_VADDR XCHAL_ 90 91 #endif 92 93 #endif /* _XTENSA_VECTORS_H */ 94
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.