Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/arch/um/sys-x86_64/shared/sysdep/faultinfo.h (Version 2.6.31.13) and /linux/arch/i386/sys-x86_64/shared/sysdep/faultinfo.h (Version 2.6.25)


  1 /*                                                  1 
  2  * Copyright (C) 2004 Fujitsu Siemens Computer    
  3  * Author: Bodo Stroesser <bstroesser@fujitsu-    
  4  * Licensed under the GPL                         
  5  */                                               
  6                                                   
  7 #ifndef __FAULTINFO_X86_64_H                      
  8 #define __FAULTINFO_X86_64_H                      
  9                                                   
 10 /* this structure contains the full arch-speci    
 11  * from the traps.                                
 12  * On i386, ptrace_faultinfo unfortunately doe    
 13  * all the info, since trap_no is missing.        
 14  * All common elements are defined at the same    
 15  * both structures, thus making it easy to cop    
 16  * contents without knowledge about the struct    
 17  */                                               
 18 struct faultinfo {                                
 19         int error_code; /* in ptrace_faultinfo    
 20         unsigned long cr2; /* in ptrace_faulti    
 21         int trap_no; /* missing in ptrace_faul    
 22 };                                                
 23                                                   
 24 #define FAULT_WRITE(fi) ((fi).error_code & 2)     
 25 #define FAULT_ADDRESS(fi) ((fi).cr2)              
 26                                                   
 27 #define PTRACE_FULL_FAULTINFO 1                   
 28                                                   
 29 #endif                                            
 30                                                   
  This page was automatically generated by the LXR engine.