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

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/bootp/init.S

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/arm/boot/bootp/init.S (Architecture mips) and /arch/m68k/boot/bootp/init.S (Architecture m68k)


  1 /* SPDX-License-Identifier: GPL-2.0-only */       
  2 /*                                                
  3  *  linux/arch/arm/boot/bootp/init.S              
  4  *                                                
  5  *  Copyright (C) 2000-2003 Russell King.         
  6  *                                                
  7  *  "Header" file for splitting kernel + initr    
  8  *  r0 through to r3 straight through.            
  9  *                                                
 10  *  This demonstrates how to append code to th    
 11  *  zImage, and boot the kernel without copyin    
 12  *  example would be simpler; if we didn't hav    
 13  *  size immediately following the kernel, we     
 14  *  a binary blob, and concatenate the zImage     
 15  */                                               
 16                 .section .start, "ax"             
 17                 .type   _start, #function         
 18                 .globl  _start                    
 19                                                   
 20 _start:         add     lr, pc, #-0x8             
 21                 adr     r13, data                 
 22                 ldmia   r13!, {r4-r6}             
 23                 add     r4, r4, lr                
 24                 bl      move                      
 25                                                   
 26 /*                                                
 27  * Setup the initrd parameters to pass to the     
 28  * passed in via the tagged list.                 
 29  */                                               
 30                 ldmia   r13, {r5-r9}              
 31                                                   
 32                                                   
 33                                                   
 34                                                   
 35                                                   
 36                                                   
 37                 ldr     r10, [r9, #4]             
 38                 teq     r10, r5                   
 39 /*                                                
 40  * If we didn't find a valid tag list, create     
 41  */                                               
 42                 movne   r10, #0                   
 43                 movne   r4, #2                    
 44                 stmiane r9, {r4, r5, r10}         
 45                                                   
 46 /*                                                
 47  * find the end of the tag list, and then add     
 48  * If there is already an INITRD tag, then we     
 49  * tag takes precedence.                          
 50  */                                               
 51 taglist:        ldr     r10, [r9, #0]             
 52                 teq     r10, #0                   
 53                 addne   r9, r9, r10, lsl #2       
 54                 bne     taglist                   
 55                                                   
 56                 mov     r5, #4                    
 57                 stmia   r9, {r5, r6, r7, r8, r    
 58                 b       kernel_start              
 59                                                   
 60 /*                                                
 61  * Move the block of memory length r6 from add    
 62  */                                               
 63 move:           ldmia   r4!, {r7 - r10}           
 64                 stmia   r5!, {r7 - r10}           
 65                 ldmia   r4!, {r7 - r10}           
 66                 stmia   r5!, {r7 - r10}           
 67                 subs    r6, r6, #8 * 4            
 68                 bcs     move                      
 69                 mov     pc, lr                    
 70                                                   
 71                 .size   _start, . - _start        
 72                                                   
 73                 .align                            
 74                                                   
 75                 .type   data,#object              
 76 data:           .word   initrd_start              
 77                 .word   initrd_phys               
 78                 .word   initrd_size               
 79                                                   
 80                 .word   0x54410001                
 81                 .word   0x54420005                
 82                 .word   initrd_phys               
 83                 .word   initrd_size               
 84                 .word   params_phys               
 85                 .size   data, . - data            
                                                      

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