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

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


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _ASMARM_BUG_H                             
  3 #define _ASMARM_BUG_H                             
  4                                                   
  5 #include <linux/linkage.h>                        
  6 #include <linux/types.h>                          
  7 #include <asm/opcodes.h>                          
  8                                                   
  9 /*                                                
 10  * Use a suitable undefined instruction to use    
 11  * We need to be careful not to conflict with     
 12  * the register_undef_hook() system.              
 13  */                                               
 14 #ifdef CONFIG_THUMB2_KERNEL                       
 15 #define BUG_INSTR_VALUE 0xde02                    
 16 #define BUG_INSTR(__value) __inst_thumb16(__va    
 17 #else                                             
 18 #define BUG_INSTR_VALUE 0xe7f001f2                
 19 #define BUG_INSTR(__value) __inst_arm(__value)    
 20 #endif                                            
 21                                                   
 22                                                   
 23 #define BUG() _BUG(__FILE__, __LINE__, BUG_INS    
 24 #define _BUG(file, line, value) __BUG(file, li    
 25                                                   
 26 #ifdef CONFIG_DEBUG_BUGVERBOSE                    
 27                                                   
 28 /*                                                
 29  * The extra indirection is to ensure that the    
 30  * OK. Many version of gcc do not support the     
 31  * preferable to this unpleasantness. We use m    
 32  * avoid multiple copies of the string appeari    
 33  */                                               
 34                                                   
 35 #define __BUG(__file, __line, __value)            
 36 do {                                              
 37         asm volatile("1:\t" BUG_INSTR(__value)    
 38                 ".pushsection .rodata.str, \"a    
 39                 "2:\t.asciz " #__file "\n"        
 40                 ".popsection\n"                   
 41                 ".pushsection __bug_table,\"aw    
 42                 ".align 2\n"                      
 43                 "3:\t.word 1b, 2b\n"              
 44                 "\t.hword " #__line ", 0\n"       
 45                 ".popsection");                   
 46         unreachable();                            
 47 } while (0)                                       
 48                                                   
 49 #else                                             
 50                                                   
 51 #define __BUG(__file, __line, __value)            
 52 do {                                              
 53         asm volatile(BUG_INSTR(__value) "\n");    
 54         unreachable();                            
 55 } while (0)                                       
 56 #endif  /* CONFIG_DEBUG_BUGVERBOSE */             
 57                                                   
 58 #define HAVE_ARCH_BUG                             
 59                                                   
 60 #include <asm-generic/bug.h>                      
 61                                                   
 62 struct pt_regs;                                   
 63 void die(const char *msg, struct pt_regs *regs    
 64                                                   
 65 void arm_notify_die(const char *str, struct pt    
 66                 int signo, int si_code, void _    
 67                 unsigned long err, unsigned lo    
 68                                                   
 69 #ifdef CONFIG_ARM_LPAE                            
 70 #define FAULT_CODE_ALIGNMENT    33                
 71 #define FAULT_CODE_DEBUG        34                
 72 #else                                             
 73 #define FAULT_CODE_ALIGNMENT    1                 
 74 #define FAULT_CODE_DEBUG        2                 
 75 #endif                                            
 76                                                   
 77 void hook_fault_code(int nr, int (*fn)(unsigne    
 78                                        struct     
 79                      int sig, int code, const     
 80                                                   
 81 void hook_ifault_code(int nr, int (*fn)(unsign    
 82                                        struct     
 83                      int sig, int code, const     
 84                                                   
 85 extern asmlinkage void c_backtrace(unsigned lo    
 86                                    const char     
 87                                                   
 88 struct mm_struct;                                 
 89 void show_pte(const char *lvl, struct mm_struc    
 90 extern void __show_regs(struct pt_regs *);        
 91 extern void __show_regs_alloc_free(struct pt_r    
 92                                                   
 93 #endif                                            
 94                                                   

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