~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/xtensa/include/asm/vectors.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * arch/xtensa/include/asm/xchal_vaddr_remap.h
  3  *
  4  * Xtensa macros for MMU V3 Support. Deals with re-mapping the Virtual
  5  * Memory Addresses from "Virtual == Physical" to their prevvious V2 MMU
  6  * mappings (KSEG at 0xD0000000 and KIO at 0XF0000000).
  7  *
  8  * This file is subject to the terms and conditions of the GNU General Public
  9  * License.  See the file "COPYING" in the main directory of this archive
 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 && XCHAL_HAVE_SPANNING_WAY
 25 #ifdef CONFIG_KERNEL_VIRTUAL_ADDRESS
 26 #define KERNELOFFSET                    CONFIG_KERNEL_VIRTUAL_ADDRESS
 27 #else
 28 #define KERNELOFFSET                    (CONFIG_KERNEL_LOAD_ADDRESS + \
 29                                          XCHAL_KSEG_CACHED_VADDR - \
 30                                          XCHAL_KSEG_PADDR)
 31 #endif
 32 #else
 33 #define KERNELOFFSET                    CONFIG_KERNEL_LOAD_ADDRESS
 34 #endif
 35 
 36 #define RESET_VECTOR1_VADDR             (XCHAL_RESET_VECTOR1_VADDR)
 37 #ifdef CONFIG_VECTORS_ADDR
 38 #define VECBASE_VADDR                   (CONFIG_VECTORS_ADDR)
 39 #else
 40 #define VECBASE_VADDR                   _vecbase
 41 #endif
 42 
 43 #if XCHAL_HAVE_VECBASE
 44 
 45 #define VECTOR_VADDR(offset)            (VECBASE_VADDR + offset)
 46 
 47 #define USER_VECTOR_VADDR               VECTOR_VADDR(XCHAL_USER_VECOFS)
 48 #define KERNEL_VECTOR_VADDR             VECTOR_VADDR(XCHAL_KERNEL_VECOFS)
 49 #define DOUBLEEXC_VECTOR_VADDR          VECTOR_VADDR(XCHAL_DOUBLEEXC_VECOFS)
 50 #define WINDOW_VECTORS_VADDR            VECTOR_VADDR(XCHAL_WINDOW_OF4_VECOFS)
 51 #define INTLEVEL2_VECTOR_VADDR          VECTOR_VADDR(XCHAL_INTLEVEL2_VECOFS)
 52 #define INTLEVEL3_VECTOR_VADDR          VECTOR_VADDR(XCHAL_INTLEVEL3_VECOFS)
 53 #define INTLEVEL4_VECTOR_VADDR          VECTOR_VADDR(XCHAL_INTLEVEL4_VECOFS)
 54 #define INTLEVEL5_VECTOR_VADDR          VECTOR_VADDR(XCHAL_INTLEVEL5_VECOFS)
 55 #define INTLEVEL6_VECTOR_VADDR          VECTOR_VADDR(XCHAL_INTLEVEL6_VECOFS)
 56 #define INTLEVEL7_VECTOR_VADDR          VECTOR_VADDR(XCHAL_INTLEVEL7_VECOFS)
 57 #define DEBUG_VECTOR_VADDR              VECTOR_VADDR(XCHAL_DEBUG_VECOFS)
 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 used.
 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_USER_VECTOR_VADDR
 80 #define KERNEL_VECTOR_VADDR             XCHAL_KERNEL_VECTOR_VADDR
 81 #define DOUBLEEXC_VECTOR_VADDR          XCHAL_DOUBLEEXC_VECTOR_VADDR
 82 #define WINDOW_VECTORS_VADDR            XCHAL_WINDOW_VECTORS_VADDR
 83 #define INTLEVEL2_VECTOR_VADDR          XCHAL_INTLEVEL2_VECTOR_VADDR
 84 #define INTLEVEL3_VECTOR_VADDR          XCHAL_INTLEVEL3_VECTOR_VADDR
 85 #define INTLEVEL4_VECTOR_VADDR          XCHAL_INTLEVEL4_VECTOR_VADDR
 86 #define INTLEVEL5_VECTOR_VADDR          XCHAL_INTLEVEL5_VECTOR_VADDR
 87 #define INTLEVEL6_VECTOR_VADDR          XCHAL_INTLEVEL6_VECTOR_VADDR
 88 #define INTLEVEL7_VECTOR_VADDR          XCHAL_INTLEVEL6_VECTOR_VADDR
 89 #define DEBUG_VECTOR_VADDR              XCHAL_DEBUG_VECTOR_VADDR
 90 
 91 #endif
 92 
 93 #endif /* _XTENSA_VECTORS_H */
 94 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php