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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/kgdb.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/powerpc/include/asm/kgdb.h (Version linux-6.12-rc7) and /arch/i386/include/asm-i386/kgdb.h (Version linux-6.10.14)


  1 /*                                                  1 
  2  * The PowerPC (32/64) specific defines / exte    
  3  * the previous 32bit and 64bit specific files    
  4  * copyrights:                                    
  5  *                                                
  6  * PPC64 Mods (C) 2005 Frank Rowand (frowand@m    
  7  * PPC Mods (C) 2004 Tom Rini (trini@mvista.co    
  8  * PPC Mods (C) 2003 John Whitney (john.whitne    
  9  * PPC Mods (C) 1998 Michael Tesch (tesch@cs.w    
 10  *                                                
 11  *                                                
 12  * Copyright (C) 1995 David S. Miller (davem@c    
 13  * Author: Tom Rini <trini@kernel.crashing.org    
 14  *                                                
 15  * 2006 (c) MontaVista Software, Inc. This fil    
 16  * the terms of the GNU General Public License    
 17  * is licensed "as is" without any warranty of    
 18  * or implied.                                    
 19  */                                               
 20 #ifdef __KERNEL__                                 
 21 #ifndef __POWERPC_KGDB_H__                        
 22 #define __POWERPC_KGDB_H__                        
 23                                                   
 24 #ifndef __ASSEMBLY__                              
 25                                                   
 26 #define BREAK_INSTR_SIZE        4                 
 27 #define BUFMAX                  ((NUMREGBYTES     
 28 #define OUTBUFMAX               ((NUMREGBYTES     
 29                                                   
 30 #define BREAK_INSTR             0x7d821008        
 31                                                   
 32 static inline void arch_kgdb_breakpoint(void)     
 33 {                                                 
 34         asm(stringify_in_c(.long BREAK_INSTR))    
 35 }                                                 
 36 #define CACHE_FLUSH_IS_SAFE     1                 
 37 #define DBG_MAX_REG_NUM     70                    
 38                                                   
 39 /* The number bytes of registers we have to sa    
 40  * things.  For 64bit we default to not includ    
 41  * vector state registers. */                     
 42 #ifdef CONFIG_PPC64                               
 43 /*                                                
 44  * 64 bit (8 byte) registers:                     
 45  *   32 gpr, 32 fpr, nip, msr, link, ctr          
 46  * 32 bit (4 byte) registers:                     
 47  *   ccr, xer, fpscr                              
 48  */                                               
 49 #define NUMREGBYTES             ((68 * 8) + (3    
 50 #define NUMCRITREGBYTES         184               
 51 #else /* CONFIG_PPC32 */                          
 52 /* On non-E500 family PPC32 we determine the s    
 53  * register we need, but on E500 we skip secti    
 54  * need to store, and add it up. */               
 55 #ifndef CONFIG_PPC_E500                           
 56 #define MAXREG                  (PT_FPSCR+1)      
 57 #else                                             
 58 /* 32 GPRs (8 bytes), nip, msr, ccr, link, ctr    
 59 #define MAXREG                 ((32*2)+6+2+1)     
 60 #endif                                            
 61 #define NUMREGBYTES             (MAXREG * size    
 62 /* CR/LR, R1, R2, R13-R31 inclusive. */           
 63 #define NUMCRITREGBYTES         (23 * sizeof(i    
 64 #endif /* 32/64 */                                
 65 #endif /* !(__ASSEMBLY__) */                      
 66 #endif /* !__POWERPC_KGDB_H__ */                  
 67 #endif /* __KERNEL__ */                           
 68                                                   

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