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

TOMOYO Linux Cross Reference
Linux/arch/sh/include/asm/kexec.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/sh/include/asm/kexec.h (Architecture ppc) and /arch/i386/include/asm-i386/kexec.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef __ASM_SH_KEXEC_H                          
  3 #define __ASM_SH_KEXEC_H                          
  4                                                   
  5 #include <asm/ptrace.h>                           
  6 #include <asm/string.h>                           
  7 #include <linux/kernel.h>                         
  8                                                   
  9 /*                                                
 10  * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_    
 11  * I.e. Maximum page that is mapped directly i    
 12  * and kmap is not required.                      
 13  *                                                
 14  * Someone correct me if FIXADDR_START - PAGEO    
 15  * calculation for the amount of memory direct    
 16  * kernel memory space.                           
 17  */                                               
 18                                                   
 19 /* Maximum physical address we can use pages f    
 20 #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)          
 21 /* Maximum address we can reach in physical ad    
 22 #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)     
 23 /* Maximum address we can use for the control     
 24 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE      
 25                                                   
 26 #define KEXEC_CONTROL_PAGE_SIZE 4096              
 27                                                   
 28 /* The native architecture */                     
 29 #define KEXEC_ARCH KEXEC_ARCH_SH                  
 30                                                   
 31 #ifdef CONFIG_KEXEC_CORE                          
 32 /* arch/sh/kernel/machine_kexec.c */              
 33 void reserve_crashkernel(void);                   
 34                                                   
 35 static inline void crash_setup_regs(struct pt_    
 36                                     struct pt_    
 37 {                                                 
 38         if (oldregs)                              
 39                 memcpy(newregs, oldregs, sizeo    
 40         else {                                    
 41                 __asm__ __volatile__ ("mov r0,    
 42                 __asm__ __volatile__ ("mov r1,    
 43                 __asm__ __volatile__ ("mov r2,    
 44                 __asm__ __volatile__ ("mov r3,    
 45                 __asm__ __volatile__ ("mov r4,    
 46                 __asm__ __volatile__ ("mov r5,    
 47                 __asm__ __volatile__ ("mov r6,    
 48                 __asm__ __volatile__ ("mov r7,    
 49                 __asm__ __volatile__ ("mov r8,    
 50                 __asm__ __volatile__ ("mov r9,    
 51                 __asm__ __volatile__ ("mov r10    
 52                 __asm__ __volatile__ ("mov r11    
 53                 __asm__ __volatile__ ("mov r12    
 54                 __asm__ __volatile__ ("mov r13    
 55                 __asm__ __volatile__ ("mov r14    
 56                 __asm__ __volatile__ ("mov r15    
 57                                                   
 58                 __asm__ __volatile__ ("sts pr,    
 59                 __asm__ __volatile__ ("sts mac    
 60                 __asm__ __volatile__ ("sts mac    
 61                                                   
 62                 __asm__ __volatile__ ("stc gbr    
 63                 __asm__ __volatile__ ("stc sr,    
 64                                                   
 65                 newregs->pc = _THIS_IP_;          
 66         }                                         
 67 }                                                 
 68 #else                                             
 69 static inline void reserve_crashkernel(void) {    
 70 #endif /* CONFIG_KEXEC_CORE */                    
 71                                                   
 72 #endif /* __ASM_SH_KEXEC_H */                     
 73                                                   

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