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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/include/asm/exception-64s.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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/powerpc/include/asm/exception-64s.h (Version linux-6.12-rc7) and /arch/i386/include/asm-i386/exception-64s.h (Version linux-5.10.223)


** Warning: Cannot open xref database.

  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 #ifndef _ASM_POWERPC_EXCEPTION_H                  
  3 #define _ASM_POWERPC_EXCEPTION_H                  
  4 /*                                                
  5  * Extracted from head_64.S                       
  6  *                                                
  7  *  PowerPC version                               
  8  *    Copyright (C) 1995-1996 Gary Thomas (gdt    
  9  *                                                
 10  *  Rewritten by Cort Dougan (cort@cs.nmt.edu)    
 11  *    Copyright (C) 1996 Cort Dougan <cort@cs.    
 12  *  Adapted for Power Macintosh by Paul Macker    
 13  *  Low-level exception handlers and MMU suppo    
 14  *  rewritten by Paul Mackerras.                  
 15  *    Copyright (C) 1996 Paul Mackerras.          
 16  *                                                
 17  *  Adapted for 64bit PowerPC by Dave Engebret    
 18  *    Mike Corrigan {engebret|bergner|mikejc}@    
 19  *                                                
 20  *  This file contains the low-level support a    
 21  *  PowerPC-64 platform, including trap and in    
 22  */                                               
 23 /*                                                
 24  * The following macros define the code that a    
 25  * the prologue to each of the exception handl    
 26  * are split into two parts to allow a single     
 27  * to be used for pSeries and iSeries.            
 28  *                                                
 29  * We make as much of the exception code commo    
 30  * exception handlers (including pSeries LPAR)    
 31  * implementations as possible.                   
 32  */                                               
 33 #include <asm/feature-fixups.h>                   
 34                                                   
 35 /* PACA save area size in u64 units (exgen, ex    
 36 #define EX_SIZE         10                        
 37                                                   
 38 /* PACA save area offsets */                      
 39 #define EX_R9           0                         
 40 #define EX_R10          8                         
 41 #define EX_R11          16                        
 42 #define EX_R12          24                        
 43 #define EX_R13          32                        
 44 #define EX_DAR          40                        
 45 #define EX_DSISR        48                        
 46 #define EX_CCR          52                        
 47 #define EX_CFAR         56                        
 48 #define EX_PPR          64                        
 49 #define EX_CTR          72                        
 50                                                   
 51 /*                                                
 52  * maximum recursive depth of MCE exceptions      
 53  */                                               
 54 #define MAX_MCE_DEPTH   4                         
 55                                                   
 56 #ifdef __ASSEMBLY__                               
 57                                                   
 58 #define STF_ENTRY_BARRIER_SLOT                    
 59         STF_ENTRY_BARRIER_FIXUP_SECTION;          
 60         nop;                                      
 61         nop;                                      
 62         nop                                       
 63                                                   
 64 #define STF_EXIT_BARRIER_SLOT                     
 65         STF_EXIT_BARRIER_FIXUP_SECTION;           
 66         nop;                                      
 67         nop;                                      
 68         nop;                                      
 69         nop;                                      
 70         nop;                                      
 71         nop                                       
 72                                                   
 73 #define ENTRY_FLUSH_SLOT                          
 74         ENTRY_FLUSH_FIXUP_SECTION;                
 75         nop;                                      
 76         nop;                                      
 77         nop;                                      
 78                                                   
 79 #define SCV_ENTRY_FLUSH_SLOT                      
 80         SCV_ENTRY_FLUSH_FIXUP_SECTION;            
 81         nop;                                      
 82         nop;                                      
 83         nop;                                      
 84                                                   
 85 /*                                                
 86  * r10 must be free to use, r13 must be paca      
 87  */                                               
 88 #define INTERRUPT_TO_KERNEL                       
 89         STF_ENTRY_BARRIER_SLOT;                   
 90         ENTRY_FLUSH_SLOT                          
 91                                                   
 92 /*                                                
 93  * r10, ctr must be free to use, r13 must be p    
 94  */                                               
 95 #define SCV_INTERRUPT_TO_KERNEL                   
 96         STF_ENTRY_BARRIER_SLOT;                   
 97         SCV_ENTRY_FLUSH_SLOT                      
 98                                                   
 99 /*                                                
100  * Macros for annotating the expected destinat    
101  *                                                
102  * The nop instructions allow us to insert one    
103  * L1-D cache when returning to userspace or a    
104  *                                                
105  * powerpc relies on return from interrupt/sys    
106  * (which hrfid, rfid, and rfscv are) to suppo    
107  * without additional synchronisation instruct    
108  *                                                
109  * soft-masked interrupt replay does not inclu    
110  * but those always return to kernel, the sync    
111  * to user.                                       
112  */                                               
113 #define RFI_FLUSH_SLOT                            
114         RFI_FLUSH_FIXUP_SECTION;                  
115         nop;                                      
116         nop;                                      
117         nop                                       
118                                                   
119 #define RFI_TO_KERNEL                             
120         rfid                                      
121                                                   
122 #define RFI_TO_USER                               
123         STF_EXIT_BARRIER_SLOT;                    
124         RFI_FLUSH_SLOT;                           
125         rfid;                                     
126         b       rfi_flush_fallback                
127                                                   
128 #define RFI_TO_USER_OR_KERNEL                     
129         STF_EXIT_BARRIER_SLOT;                    
130         RFI_FLUSH_SLOT;                           
131         rfid;                                     
132         b       rfi_flush_fallback                
133                                                   
134 #define RFI_TO_GUEST                              
135         STF_EXIT_BARRIER_SLOT;                    
136         RFI_FLUSH_SLOT;                           
137         rfid;                                     
138         b       rfi_flush_fallback                
139                                                   
140 #define HRFI_TO_KERNEL                            
141         hrfid                                     
142                                                   
143 #define HRFI_TO_USER                              
144         STF_EXIT_BARRIER_SLOT;                    
145         RFI_FLUSH_SLOT;                           
146         hrfid;                                    
147         b       hrfi_flush_fallback               
148                                                   
149 #define HRFI_TO_USER_OR_KERNEL                    
150         STF_EXIT_BARRIER_SLOT;                    
151         RFI_FLUSH_SLOT;                           
152         hrfid;                                    
153         b       hrfi_flush_fallback               
154                                                   
155 #define HRFI_TO_GUEST                             
156         STF_EXIT_BARRIER_SLOT;                    
157         RFI_FLUSH_SLOT;                           
158         hrfid;                                    
159         b       hrfi_flush_fallback               
160                                                   
161 #define HRFI_TO_UNKNOWN                           
162         STF_EXIT_BARRIER_SLOT;                    
163         RFI_FLUSH_SLOT;                           
164         hrfid;                                    
165         b       hrfi_flush_fallback               
166                                                   
167 #define RFSCV_TO_USER                             
168         STF_EXIT_BARRIER_SLOT;                    
169         RFI_FLUSH_SLOT;                           
170         RFSCV;                                    
171         b       rfscv_flush_fallback              
172                                                   
173 #else /* __ASSEMBLY__ */                          
174 /* Prototype for function defined in exception    
175 void do_uaccess_flush(void);                      
176 #endif /* __ASSEMBLY__ */                         
177                                                   
178 #endif  /* _ASM_POWERPC_EXCEPTION_H */            
179                                                   

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