vectors.h (6591685d50043f615a1ad7ddd5bb263ef54808fc) | vectors.h (7af710d988775aadf440222ecbe0c10eecf3eb54) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 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 | 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 --- 8 unchanged lines hidden (view full) --- 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 |
|
25#define KERNELOFFSET (CONFIG_KERNEL_LOAD_ADDRESS + \ 26 XCHAL_KSEG_CACHED_VADDR - \ 27 XCHAL_KSEG_PADDR) | 28#define KERNELOFFSET (CONFIG_KERNEL_LOAD_ADDRESS + \ 29 XCHAL_KSEG_CACHED_VADDR - \ 30 XCHAL_KSEG_PADDR) |
31#endif |
|
28#else 29#define KERNELOFFSET CONFIG_KERNEL_LOAD_ADDRESS 30#endif 31 32#define RESET_VECTOR1_VADDR (XCHAL_RESET_VECTOR1_VADDR) 33#ifdef CONFIG_VECTORS_OFFSET 34#define VECBASE_VADDR (KERNELOFFSET - CONFIG_VECTORS_OFFSET) 35#else --- 54 unchanged lines hidden --- | 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_OFFSET 38#define VECBASE_VADDR (KERNELOFFSET - CONFIG_VECTORS_OFFSET) 39#else --- 54 unchanged lines hidden --- |