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

TOMOYO Linux Cross Reference
Linux/Documentation/arch/arm/porting.rst

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 /Documentation/arch/arm/porting.rst (Architecture m68k) and /Documentation/arch/i386/porting.rst (Architecture i386)


  1 =======                                           
  2 Porting                                           
  3 =======                                           
  4                                                   
  5 Taken from list archive at http://lists.arm.li    
  6                                                   
  7 Initial definitions                               
  8 -------------------                               
  9                                                   
 10 The following symbol definitions rely on you k    
 11 __virt_to_phys() does for your machine.  This     
 12 virtual address to a physical address.  Normal    
 13                                                   
 14                 phys = virt - PAGE_OFFSET + PH    
 15                                                   
 16                                                   
 17 Decompressor Symbols                              
 18 --------------------                              
 19                                                   
 20 ZTEXTADDR                                         
 21         Start address of decompressor.  There'    
 22         virtual or physical addresses here, si    
 23         the time when you call the decompresso    
 24         the kernel at this address to start it    
 25         to be located in RAM, it can be in fla    
 26         read-write addressable medium.            
 27                                                   
 28 ZBSSADDR                                          
 29         Start address of zero-initialised work    
 30         This must be pointing at RAM.  The dec    
 31         this for you.  Again, the MMU will be     
 32                                                   
 33 ZRELADDR                                          
 34         This is the address where the decompre    
 35         and eventually executed.  The followin    
 36                                                   
 37                 __virt_to_phys(TEXTADDR) == ZR    
 38                                                   
 39         The initial part of the kernel is care    
 40         independent.                              
 41                                                   
 42 INITRD_PHYS                                       
 43         Physical address to place the initial     
 44         you are using the bootpImage stuff (wh    
 45         struct param_struct).                     
 46                                                   
 47 INITRD_VIRT                                       
 48         Virtual address of the initial RAM dis    
 49         must be valid:                            
 50                                                   
 51                 __virt_to_phys(INITRD_VIRT) ==    
 52                                                   
 53 PARAMS_PHYS                                       
 54         Physical address of the struct param_s    
 55         kernel various parameters about its ex    
 56                                                   
 57                                                   
 58 Kernel Symbols                                    
 59 --------------                                    
 60                                                   
 61 PHYS_OFFSET                                       
 62         Physical start address of the first ba    
 63                                                   
 64 PAGE_OFFSET                                       
 65         Virtual start address of the first ban    
 66         boot phase, virtual address PAGE_OFFSE    
 67         address PHYS_OFFSET, along with any ot    
 68         This should be the same value as TASK_    
 69                                                   
 70 TASK_SIZE                                         
 71         The maximum size of a user process in     
 72         always starts at zero, this is the max    
 73         process can access+1.  The user space     
 74         address.                                  
 75                                                   
 76         Any virtual address below TASK_SIZE is    
 77         area, and therefore managed dynamicall    
 78         basis by the kernel.  I'll call this t    
 79                                                   
 80         Anything above TASK_SIZE is common to     
 81         this the kernel segment.                  
 82                                                   
 83         (In other words, you can't put IO mapp    
 84         hence PAGE_OFFSET).                       
 85                                                   
 86 TEXTADDR                                          
 87         Virtual start address of kernel, norma    
 88         This is where the kernel image ends up    
 89         it must be located at 32768 bytes into    
 90         kernels placed a restriction of 256MB     
 91                                                   
 92 DATAADDR                                          
 93         Virtual address for the kernel data se    
 94         when using the decompressor.              
 95                                                   
 96 VMALLOC_START / VMALLOC_END                       
 97         Virtual addresses bounding the vmalloc    
 98         any static mappings in this area; vmal    
 99         The addresses must also be in the kern    
100         Normally, the vmalloc() area starts VM    
101         last virtual RAM address (found using     
102                                                   
103 VMALLOC_OFFSET                                    
104         Offset normally incorporated into VMAL    
105         between virtual RAM and the vmalloc ar    
106         out of bounds memory accesses (eg, som    
107         of the mapped memory map) to be caught    
108                                                   
109 Architecture Specific Macros                      
110 ----------------------------                      
111                                                   
112 BOOT_MEM(pram,pio,vio)                            
113         `pram` specifies the physical start ad    
114         be present, and should be the same as     
115                                                   
116         `pio` is the physical address of an 8M    
117         use with the debugging macros in arch/    
118                                                   
119         `vio` is the virtual address of the 8M    
120                                                   
121         It is expected that the debugging regi    
122         by the architecture specific code late    
123         MAPIO function).                          
124                                                   
125 BOOT_PARAMS                                       
126         Same as, and see PARAMS_PHYS.             
127                                                   
128 FIXUP(func)                                       
129         Machine specific fixups, run before me    
130         initialised.                              
131                                                   
132 MAPIO(func)                                       
133         Machine specific function to map IO ar    
134         region above).                            
135                                                   
136 INITIRQ(func)                                     
137         Machine specific function to initialis    
                                                      

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