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

TOMOYO Linux Cross Reference
Linux/arch/arm/include/asm/efi.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/arm/include/asm/efi.h (Architecture sparc64) and /arch/i386/include/asm-i386/efi.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Copyright (C) 2015 Linaro Ltd <ard.biesheuv    
  4  */                                               
  5                                                   
  6 #ifndef __ASM_ARM_EFI_H                           
  7 #define __ASM_ARM_EFI_H                           
  8                                                   
  9 #include <asm/cacheflush.h>                       
 10 #include <asm/cachetype.h>                        
 11 #include <asm/early_ioremap.h>                    
 12 #include <asm/fixmap.h>                           
 13 #include <asm/highmem.h>                          
 14 #include <asm/mach/map.h>                         
 15 #include <asm/mmu_context.h>                      
 16 #include <asm/ptrace.h>                           
 17 #include <asm/uaccess.h>                          
 18                                                   
 19 #ifdef CONFIG_EFI                                 
 20 void efi_init(void);                              
 21 void arm_efi_init(void);                          
 22                                                   
 23 int efi_create_mapping(struct mm_struct *mm, e    
 24 int efi_set_mapping_permissions(struct mm_stru    
 25                                                   
 26 #define arch_efi_call_virt_setup()      efi_vi    
 27 #define arch_efi_call_virt_teardown()   efi_vi    
 28                                                   
 29 #ifdef CONFIG_CPU_TTBR0_PAN                       
 30 #undef arch_efi_call_virt                         
 31 #define arch_efi_call_virt(p, f, args...) ({      
 32         unsigned int flags = uaccess_save_and_    
 33         efi_status_t res = _Generic((p)->f(arg    
 34                         efi_status_t:   (p)->f    
 35                         default:        ((p)->    
 36         uaccess_restore(flags);                   
 37         res;                                      
 38 })                                                
 39 #endif                                            
 40                                                   
 41 #define ARCH_EFI_IRQ_FLAGS_MASK \                 
 42         (PSR_J_BIT | PSR_E_BIT | PSR_A_BIT | P    
 43          PSR_T_BIT | MODE_MASK)                   
 44                                                   
 45 static inline void efi_set_pgd(struct mm_struc    
 46 {                                                 
 47         check_and_switch_context(mm, NULL);       
 48 }                                                 
 49                                                   
 50 void efi_virtmap_load(void);                      
 51 void efi_virtmap_unload(void);                    
 52                                                   
 53 #else                                             
 54 #define arm_efi_init()                            
 55 #endif /* CONFIG_EFI */                           
 56                                                   
 57 /* arch specific definitions used by the stub     
 58                                                   
 59 /*                                                
 60  * A reasonable upper bound for the uncompress    
 61  * so we will reserve that amount of memory. W    
 62  * the actuall size of code + data the uncompr    
 63  * If this is insufficient, the decompressor w    
 64  * way before performing the decompression.       
 65  */                                               
 66 #define MAX_UNCOMP_KERNEL_SIZE  SZ_32M            
 67                                                   
 68 /*                                                
 69  * phys-to-virt patching requires that the phy    
 70  * multiple of 2 MiB. However, using an alignm    
 71  * here throws off the memory allocation logic    
 72  * of two greater than 2 MiB and greater than     
 73  */                                               
 74 #define EFI_PHYS_ALIGN          max(UL(SZ_2M),    
 75                                                   
 76 /* on ARM, the initrd should be loaded in a lo    
 77 static inline unsigned long efi_get_max_initrd    
 78 {                                                 
 79         return round_down(image_addr, SZ_4M) +    
 80 }                                                 
 81                                                   
 82 struct efi_arm_entry_state {                      
 83         u32     cpsr_before_ebs;                  
 84         u32     sctlr_before_ebs;                 
 85         u32     cpsr_after_ebs;                   
 86         u32     sctlr_after_ebs;                  
 87 };                                                
 88                                                   
 89 static inline void efi_capsule_flush_cache_ran    
 90 {                                                 
 91         __cpuc_flush_dcache_area(addr, size);     
 92 }                                                 
 93                                                   
 94 #endif /* _ASM_ARM_EFI_H */                       
 95                                                   

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