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

TOMOYO Linux Cross Reference
Linux/arch/xtensa/include/asm/ptrace.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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/xtensa/include/asm/ptrace.h (Architecture ppc) and /arch/mips/include/asm-mips/ptrace.h (Architecture mips)


  1 /*                                                  1 
  2  * include/asm-xtensa/ptrace.h                    
  3  *                                                
  4  * This file is subject to the terms and condi    
  5  * License.  See the file "COPYING" in the mai    
  6  * for more details.                              
  7  *                                                
  8  * Copyright (C) 2001 - 2005 Tensilica Inc.       
  9  */                                               
 10 #ifndef _XTENSA_PTRACE_H                          
 11 #define _XTENSA_PTRACE_H                          
 12                                                   
 13 #include <asm/kmem_layout.h>                      
 14 #include <uapi/asm/ptrace.h>                      
 15                                                   
 16 /*                                                
 17  * Kernel stack                                   
 18  *                                                
 19  *              +-----------------------+  ---    
 20  *              |     register file     |  |      
 21  *              +-----------------------+  |      
 22  *              |    struct pt_regs     |  |      
 23  *              +-----------------------+  | -    
 24  * double       :  16 bytes spill area  :  |      
 25  * excetion     :- - - - - - - - - - - -:  |      
 26  * frame        :    struct pt_regs     :  |      
 27  *              :- - - - - - - - - - - -:  |      
 28  *              |                       |  |      
 29  *              |     memory stack      |  |      
 30  *              |                       |  |      
 31  *              ~                       ~  ~      
 32  *              ~                       ~  ~      
 33  *              |                       |  |      
 34  *              |                       |  |      
 35  *              +-----------------------+  |      
 36  *              |  struct task_struct   |  |      
 37  *  current --> +-----------------------+  |      
 38  *              |  struct thread_info   |  |      
 39  *              +-----------------------+ ----    
 40  */                                               
 41                                                   
 42 #define NO_SYSCALL (-1)                           
 43                                                   
 44 #ifndef __ASSEMBLY__                              
 45                                                   
 46 #include <asm/coprocessor.h>                      
 47 #include <asm/core.h>                             
 48                                                   
 49 /*                                                
 50  * This struct defines the way the registers a    
 51  * kernel stack during a system call or other     
 52  */                                               
 53 struct pt_regs {                                  
 54         unsigned long pc;               /*   4    
 55         unsigned long ps;               /*   8    
 56         unsigned long depc;             /*  12    
 57         unsigned long exccause;         /*  16    
 58         unsigned long excvaddr;         /*  20    
 59         unsigned long debugcause;       /*  24    
 60         unsigned long wmask;            /*  28    
 61         unsigned long lbeg;             /*  32    
 62         unsigned long lend;             /*  36    
 63         unsigned long lcount;           /*  40    
 64         unsigned long sar;              /*  44    
 65         unsigned long windowbase;       /*  48    
 66         unsigned long windowstart;      /*  52    
 67         unsigned long syscall;          /*  56    
 68         unsigned long icountlevel;      /*  60    
 69         unsigned long scompare1;        /*  64    
 70         unsigned long threadptr;        /*  68    
 71                                                   
 72         /* Additional configurable registers t    
 73         xtregs_opt_t xtregs_opt;                  
 74                                                   
 75         /* Make sure the areg field is 16 byte    
 76         int align[0] __attribute__ ((aligned(1    
 77                                                   
 78         /* current register frame.                
 79          * Note: The ESF for kernel exceptions    
 80          */                                       
 81         unsigned long areg[XCHAL_NUM_AREGS];      
 82 };                                                
 83                                                   
 84 # define arch_has_single_step() (1)               
 85 # define task_pt_regs(tsk) ((struct pt_regs*)     
 86         (task_stack_page(tsk) + KERNEL_STACK_S    
 87 # define user_mode(regs) (((regs)->ps & 0x0000    
 88 # define instruction_pointer(regs) ((regs)->pc    
 89 # define return_pointer(regs) (MAKE_PC_FROM_RA    
 90                                                   
 91                                                   
 92 # ifndef CONFIG_SMP                               
 93 #  define profile_pc(regs) instruction_pointer    
 94 # else                                            
 95 #  define profile_pc(regs)                        
 96         ({                                        
 97                 in_lock_functions(instruction_    
 98                 return_pointer(regs) : instruc    
 99         })                                        
100 # endif                                           
101                                                   
102 #define user_stack_pointer(regs) ((regs)->areg    
103                                                   
104 static inline unsigned long regs_return_value(    
105 {                                                 
106         return regs->areg[2];                     
107 }                                                 
108                                                   
109 int do_syscall_trace_enter(struct pt_regs *reg    
110 void do_syscall_trace_leave(struct pt_regs *re    
111                                                   
112 #else   /* __ASSEMBLY__ */                        
113                                                   
114 # include <asm/asm-offsets.h>                     
115 #define PT_REGS_OFFSET    (KERNEL_STACK_SIZE -    
116                                                   
117 #endif  /* !__ASSEMBLY__ */                       
118                                                   
119 #endif  /* _XTENSA_PTRACE_H */                    
120                                                   

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