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

TOMOYO Linux Cross Reference
Linux/arch/hexagon/include/asm/mem-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/hexagon/include/asm/mem-layout.h (Architecture ppc) and /arch/m68k/include/asm-m68k/mem-layout.h (Architecture m68k)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Memory layout definitions for the Hexagon a    
  4  *                                                
  5  * Copyright (c) 2010-2013, The Linux Foundati    
  6  */                                               
  7                                                   
  8 #ifndef _ASM_HEXAGON_MEM_LAYOUT_H                 
  9 #define _ASM_HEXAGON_MEM_LAYOUT_H                 
 10                                                   
 11 #include <linux/const.h>                          
 12                                                   
 13 /*                                                
 14  * Have to do this for ginormous numbers, else    
 15  * negative numbers, which the linker no likey    
 16  * assign it to the location counter.             
 17  */                                               
 18                                                   
 19 #define PAGE_OFFSET                     _AC(0x    
 20                                                   
 21 /*                                                
 22  * Compiling for a platform that needs a crazy    
 23  * (like if the memory starts at 1GB and up) m    
 24  * an actual PHYS_OFFSET.  Should be set up in    
 25  */                                               
 26                                                   
 27 #ifdef CONFIG_HEXAGON_PHYS_OFFSET                 
 28 #ifndef __ASSEMBLY__                              
 29 extern unsigned long    __phys_offset;            
 30 #endif                                            
 31 #define PHYS_OFFSET     __phys_offset             
 32 #endif                                            
 33                                                   
 34 #ifndef PHYS_OFFSET                               
 35 #define PHYS_OFFSET     0                         
 36 #endif                                            
 37                                                   
 38 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_S    
 39 #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET           
 40                                                   
 41 #define TASK_SIZE                       (PAGE_    
 42                                                   
 43 /*  not sure how these are used yet  */           
 44 #define STACK_TOP                       TASK_S    
 45 #define STACK_TOP_MAX                   TASK_S    
 46                                                   
 47 #ifndef __ASSEMBLY__                              
 48 enum fixed_addresses {                            
 49         FIX_KMAP_BEGIN,                           
 50         FIX_KMAP_END,  /*  check for per-cpuis    
 51         __end_of_fixed_addresses                  
 52 };                                                
 53                                                   
 54 #define MIN_KERNEL_SEG (PAGE_OFFSET >> PGDIR_S    
 55 extern int max_kernel_seg;                        
 56                                                   
 57 /*                                                
 58  * Start of vmalloc virtual address space for     
 59  * supposed to be based on the amount of physi    
 60  */                                               
 61                                                   
 62 #define VMALLOC_START ((unsigned long) __va(hi    
 63                                                   
 64 /* Gap between physical ram and vmalloc space     
 65 #define VMALLOC_OFFSET PAGE_SIZE                  
 66                                                   
 67 /*                                                
 68  * Create the space between VMALLOC_START and     
 69  * from the ... "top".                            
 70  *                                                
 71  * Permanent IO mappings will live at 0xfexx_x    
 72  * Hypervisor occupies the last 16MB page at 0    
 73  */                                               
 74                                                   
 75 #define FIXADDR_TOP     0xfe000000                
 76 #define FIXADDR_SIZE    (__end_of_fixed_addres    
 77 #define FIXADDR_START   (FIXADDR_TOP - FIXADDR    
 78                                                   
 79 /*                                                
 80  * "permanent kernel mappings", defined as lon    
 81  * high-memory page frames into the kernel add    
 82  */                                               
 83                                                   
 84 #define LAST_PKMAP      PTRS_PER_PTE              
 85 #define LAST_PKMAP_MASK (LAST_PKMAP - 1)          
 86 #define PKMAP_NR(virt)  ((virt - PKMAP_BASE) >    
 87 #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) <<    
 88                                                   
 89 /*                                                
 90  * To the "left" of the fixed map space is the    
 91  *                                                
 92  * "Permanent Kernel Mappings"; fancy (or less    
 93  * that looks like it's actually walked.          
 94  * Need to check the alignment/shift usage; so    
 95  * PMD_MASK on this value                         
 96  */                                               
 97 #define PKMAP_BASE (FIXADDR_START-PAGE_SIZE*LA    
 98                                                   
 99 /*                                                
100  * 2 pages of guard gap between where vmalloc     
101  * and pkmap_base begins.                         
102  */                                               
103 #define VMALLOC_END (PKMAP_BASE-PAGE_SIZE*2)      
104 #endif /*  !__ASSEMBLY__  */                      
105                                                   
106                                                   
107 #endif /* _ASM_HEXAGON_MEM_LAYOUT_H */            
108                                                   

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