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

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

Version: ~ [ linux-6.6-rc1 ] ~ [ linux-6.5.2 ] ~ [ linux-6.4.15 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.52 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.131 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.194 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.256 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.294 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.325 ] ~ [ 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  * Kernel virtual memory layout definitions.
  3  *
  4  * This file is subject to the terms and conditions of the GNU General
  5  * Public License.  See the file "COPYING" in the main directory of
  6  * this archive for more details.
  7  *
  8  * Copyright (C) 2016 Cadence Design Systems Inc.
  9  */
 10 
 11 #ifndef _XTENSA_KMEM_LAYOUT_H
 12 #define _XTENSA_KMEM_LAYOUT_H
 13 
 14 #include <asm/types.h>
 15 
 16 #ifdef CONFIG_MMU
 17 
 18 /*
 19  * Fixed TLB translations in the processor.
 20  */
 21 
 22 #define XCHAL_PAGE_TABLE_VADDR  __XTENSA_UL_CONST(0x80000000)
 23 #define XCHAL_PAGE_TABLE_SIZE   __XTENSA_UL_CONST(0x00400000)
 24 
 25 #if defined(CONFIG_XTENSA_KSEG_MMU_V2)
 26 
 27 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CONST(0xd0000000)
 28 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CONST(0xd8000000)
 29 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CONST(0x08000000)
 30 #define XCHAL_KSEG_ALIGNMENT    __XTENSA_UL_CONST(0x08000000)
 31 #define XCHAL_KSEG_TLB_WAY      5
 32 #define XCHAL_KIO_TLB_WAY       6
 33 
 34 #elif defined(CONFIG_XTENSA_KSEG_256M)
 35 
 36 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CONST(0xb0000000)
 37 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CONST(0xc0000000)
 38 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CONST(0x10000000)
 39 #define XCHAL_KSEG_ALIGNMENT    __XTENSA_UL_CONST(0x10000000)
 40 #define XCHAL_KSEG_TLB_WAY      6
 41 #define XCHAL_KIO_TLB_WAY       6
 42 
 43 #elif defined(CONFIG_XTENSA_KSEG_512M)
 44 
 45 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CONST(0xa0000000)
 46 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CONST(0xc0000000)
 47 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CONST(0x20000000)
 48 #define XCHAL_KSEG_ALIGNMENT    __XTENSA_UL_CONST(0x10000000)
 49 #define XCHAL_KSEG_TLB_WAY      6
 50 #define XCHAL_KIO_TLB_WAY       6
 51 
 52 #else
 53 #error Unsupported KSEG configuration
 54 #endif
 55 
 56 #ifdef CONFIG_KSEG_PADDR
 57 #define XCHAL_KSEG_PADDR        __XTENSA_UL_CONST(CONFIG_KSEG_PADDR)
 58 #else
 59 #define XCHAL_KSEG_PADDR        __XTENSA_UL_CONST(0x00000000)
 60 #endif
 61 
 62 #if XCHAL_KSEG_PADDR & (XCHAL_KSEG_ALIGNMENT - 1)
 63 #error XCHAL_KSEG_PADDR is not properly aligned to XCHAL_KSEG_ALIGNMENT
 64 #endif
 65 
 66 #else
 67 
 68 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CONST(0xd0000000)
 69 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CONST(0xd8000000)
 70 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CONST(0x08000000)
 71 
 72 #endif
 73 
 74 #ifndef CONFIG_KASAN
 75 #define KERNEL_STACK_SHIFT      13
 76 #else
 77 #define KERNEL_STACK_SHIFT      15
 78 #endif
 79 #define KERNEL_STACK_SIZE       (1 << KERNEL_STACK_SHIFT)
 80 
 81 #endif
 82 

~ [ 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.

osdn.jp