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

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/compressed/efi-header.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/compressed/efi-header.S (Version linux-6.12-rc7) and /arch/i386/boot/compressed/efi-header.S (Version linux-4.19.323)


  1 /* SPDX-License-Identifier: GPL-2.0-only */       
  2 /*                                                
  3  * Copyright (C) 2013-2017 Linaro Ltd             
  4  * Authors: Roy Franz <roy.franz@linaro.org>       
  5  *          Ard Biesheuvel <ard.biesheuvel@lina    
  6  */                                               
  7                                                   
  8 #include <linux/pe.h>                             
  9 #include <linux/sizes.h>                          
 10                                                   
 11                 .macro  __nop                     
 12  AR_CLASS(      mov     r0, r0          )         
 13   M_CLASS(      nop.w                   )         
 14                 .endm                             
 15                                                   
 16                 .macro __initial_nops             
 17 #ifdef CONFIG_EFI_STUB                            
 18                 @ This is a two-instruction NO    
 19                 @ PE/COFF signature "MZ" in th    
 20                 @ is accepted as an EFI binary    
 21                 @ will not execute those instr    
 22                 @ boot protocol does, so we ne    
 23                 .inst   MZ_MAGIC | (0xe225 <<     
 24                 eor     r5, r5, 0x4d000           
 25 #else                                             
 26                 __nop                             
 27                 __nop                             
 28 #endif                                            
 29                 .endm                             
 30                                                   
 31                 .macro  __EFI_HEADER              
 32 #ifdef CONFIG_EFI_STUB                            
 33                 .set    start_offset, __efi_st    
 34                 .org    start + 0x3c              
 35                 @                                 
 36                 @ The PE header can be anywher    
 37                 @ simplicity we keep it togeth    
 38                 @ The offset to the PE/COFF he    
 39                 @ 0x3C in the MSDOS header.       
 40                 @ The only 2 fields of the MSD    
 41                 @ PE/COFF offset, and the "MZ"    
 42                 @                                 
 43                 .long   pe_header - start         
 44                                                   
 45 pe_header:                                        
 46                 .long   PE_MAGIC                  
 47                                                   
 48 coff_header:                                      
 49                 .short  IMAGE_FILE_MACHINE_THU    
 50                 .short  section_count             
 51                 .long   0                         
 52                 .long   0                         
 53                 .long   0                         
 54                 .short  section_table - option    
 55                 .short  IMAGE_FILE_32BIT_MACHI    
 56                         IMAGE_FILE_DEBUG_STRIP    
 57                         IMAGE_FILE_EXECUTABLE_    
 58                         IMAGE_FILE_LINE_NUMS_S    
 59                                                   
 60 #define __pecoff_code_size (__pecoff_data_star    
 61                                                   
 62 optional_header:                                  
 63                 .short  PE_OPT_MAGIC_PE32         
 64                 .byte   0x02                      
 65                 .byte   0x14                      
 66                 .long   __pecoff_code_size        
 67                 .long   __pecoff_data_size        
 68                 .long   0                         
 69                 .long   efi_pe_entry - start      
 70                 .long   start_offset              
 71                 .long   __pecoff_data_start -     
 72                                                   
 73 extra_header_fields:                              
 74                 .long   0                         
 75                 .long   SZ_4K                     
 76                 .long   SZ_512                    
 77                 .short  0                         
 78                 .short  0                         
 79                 .short  LINUX_EFISTUB_MAJOR_VE    
 80                 .short  LINUX_EFISTUB_MINOR_VE    
 81                 .short  0                         
 82                 .short  0                         
 83                 .long   0                         
 84                                                   
 85                 .long   __pecoff_end - start      
 86                 .long   start_offset              
 87                 .long   0                         
 88                 .short  IMAGE_SUBSYSTEM_EFI_AP    
 89                 .short  0                         
 90                 .long   0                         
 91                 .long   0                         
 92                 .long   0                         
 93                 .long   0                         
 94                 .long   0                         
 95                 .long   (section_table - .) /     
 96                                                   
 97                 .quad   0                         
 98                 .quad   0                         
 99                 .quad   0                         
100                 .quad   0                         
101                 .quad   0                         
102                 .quad   0                         
103                                                   
104 section_table:                                    
105                 .ascii  ".text\0\0\0"             
106                 .long   __pecoff_code_size        
107                 .long   __efi_start               
108                 .long   __pecoff_code_size        
109                 .long   __efi_start               
110                 .long   0                         
111                 .long   0                         
112                 .short  0                         
113                 .short  0                         
114                 .long   IMAGE_SCN_CNT_CODE | \    
115                         IMAGE_SCN_MEM_READ | \    
116                         IMAGE_SCN_MEM_EXECUTE     
117                                                   
118                 .ascii  ".data\0\0\0"             
119                 .long   __pecoff_data_size        
120                 .long   __pecoff_data_start -     
121                 .long   __pecoff_data_rawsize     
122                 .long   __pecoff_data_start -     
123                 .long   0                         
124                 .long   0                         
125                 .short  0                         
126                 .short  0                         
127                 .long   IMAGE_SCN_CNT_INITIALI    
128                         IMAGE_SCN_MEM_READ | \    
129                         IMAGE_SCN_MEM_WRITE       
130                                                   
131                 .set    section_count, (. - se    
132                                                   
133                 .align  12                        
134 __efi_start:                                      
135 #endif                                            
136                 .endm                             
                                                      

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