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

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

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/xtensa/include/asm/kmem_layout.h (Version linux-6.12-rc7) and /arch/i386/include/asm-i386/kmem_layout.h (Version linux-2.6.32.71)


  1 /*                                                  1 
  2  * Kernel virtual memory layout definitions.      
  3  *                                                
  4  * This file is subject to the terms and condi    
  5  * Public License.  See the file "COPYING" in     
  6  * this archive for more details.                 
  7  *                                                
  8  * Copyright (C) 2016 Cadence Design Systems I    
  9  */                                               
 10                                                   
 11 #ifndef _XTENSA_KMEM_LAYOUT_H                     
 12 #define _XTENSA_KMEM_LAYOUT_H                     
 13                                                   
 14 #include <asm/core.h>                             
 15 #include <asm/types.h>                            
 16                                                   
 17 #ifdef CONFIG_MMU                                 
 18                                                   
 19 /*                                                
 20  * Fixed TLB translations in the processor.       
 21  */                                               
 22                                                   
 23 #define XCHAL_PAGE_TABLE_VADDR  __XTENSA_UL_CO    
 24 #define XCHAL_PAGE_TABLE_SIZE   __XTENSA_UL_CO    
 25                                                   
 26 #if defined(CONFIG_XTENSA_KSEG_MMU_V2)            
 27                                                   
 28 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CO    
 29 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CO    
 30 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CO    
 31 #define XCHAL_KSEG_ALIGNMENT    __XTENSA_UL_CO    
 32 #define XCHAL_KSEG_TLB_WAY      5                 
 33 #define XCHAL_KIO_TLB_WAY       6                 
 34                                                   
 35 #elif defined(CONFIG_XTENSA_KSEG_256M)            
 36                                                   
 37 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CO    
 38 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CO    
 39 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CO    
 40 #define XCHAL_KSEG_ALIGNMENT    __XTENSA_UL_CO    
 41 #define XCHAL_KSEG_TLB_WAY      6                 
 42 #define XCHAL_KIO_TLB_WAY       6                 
 43                                                   
 44 #elif defined(CONFIG_XTENSA_KSEG_512M)            
 45                                                   
 46 #define XCHAL_KSEG_CACHED_VADDR __XTENSA_UL_CO    
 47 #define XCHAL_KSEG_BYPASS_VADDR __XTENSA_UL_CO    
 48 #define XCHAL_KSEG_SIZE         __XTENSA_UL_CO    
 49 #define XCHAL_KSEG_ALIGNMENT    __XTENSA_UL_CO    
 50 #define XCHAL_KSEG_TLB_WAY      6                 
 51 #define XCHAL_KIO_TLB_WAY       6                 
 52                                                   
 53 #else                                             
 54 #error Unsupported KSEG configuration             
 55 #endif                                            
 56                                                   
 57 #ifdef CONFIG_KSEG_PADDR                          
 58 #define XCHAL_KSEG_PADDR        __XTENSA_UL_CO    
 59 #else                                             
 60 #define XCHAL_KSEG_PADDR        __XTENSA_UL_CO    
 61 #endif                                            
 62                                                   
 63 #if XCHAL_KSEG_PADDR & (XCHAL_KSEG_ALIGNMENT -    
 64 #error XCHAL_KSEG_PADDR is not properly aligne    
 65 #endif                                            
 66                                                   
 67 #endif                                            
 68                                                   
 69 /* KIO definition */                              
 70                                                   
 71 #if XCHAL_HAVE_PTP_MMU                            
 72 #define XCHAL_KIO_CACHED_VADDR          0xe000    
 73 #define XCHAL_KIO_BYPASS_VADDR          0xf000    
 74 #define XCHAL_KIO_DEFAULT_PADDR         0xf000    
 75 #else                                             
 76 #define XCHAL_KIO_BYPASS_VADDR          XCHAL_    
 77 #define XCHAL_KIO_DEFAULT_PADDR         0x9000    
 78 #endif                                            
 79 #define XCHAL_KIO_SIZE                  0x1000    
 80                                                   
 81 #if (!XCHAL_HAVE_PTP_MMU || XCHAL_HAVE_SPANNIN    
 82 #define XCHAL_KIO_PADDR                 xtensa    
 83 #ifndef __ASSEMBLY__                              
 84 extern unsigned long xtensa_kio_paddr;            
 85                                                   
 86 static inline unsigned long xtensa_get_kio_pad    
 87 {                                                 
 88         return xtensa_kio_paddr;                  
 89 }                                                 
 90 #endif                                            
 91 #else                                             
 92 #define XCHAL_KIO_PADDR                 XCHAL_    
 93 #endif                                            
 94                                                   
 95 /* KERNEL_STACK definition */                     
 96                                                   
 97 #ifndef CONFIG_KASAN                              
 98 #define KERNEL_STACK_SHIFT      13                
 99 #else                                             
100 #define KERNEL_STACK_SHIFT      15                
101 #endif                                            
102 #define KERNEL_STACK_SIZE       (1 << KERNEL_S    
103                                                   
104 #endif                                            
105                                                   

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