| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /* written by Philipp Rumpf, Copyright (C) 1999 SuSE GmbH Nuernberg
 | 
					
						
							|  |  |  | ** Copyright (C) 2000 Grant Grundler, Hewlett-Packard | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2012-10-16 21:28:05 +01:00
										 |  |  | #ifndef _PARISC_PTRACE_H
 | 
					
						
							|  |  |  | #define _PARISC_PTRACE_H
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-10-16 21:28:05 +01:00
										 |  |  | #include <uapi/asm/ptrace.h>
 | 
					
						
							| 
									
										
										
										
											2008-07-25 01:47:34 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-07-25 01:47:34 -07:00
										 |  |  | #define task_regs(task) ((struct pt_regs *) ((char *)(task) + TASK_REGS))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-10-17 18:48:36 +00:00
										 |  |  | #define arch_has_single_step()	1
 | 
					
						
							|  |  |  | #define arch_has_block_step()	1
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /* XXX should we use iaoq[1] or iaoq[0] ? */ | 
					
						
							|  |  |  | #define user_mode(regs)			(((regs)->iaoq[0] & 3) ? 1 : 0)
 | 
					
						
							|  |  |  | #define user_space(regs)		(((regs)->iasq[1] != 0) ? 1 : 0)
 | 
					
						
							|  |  |  | #define instruction_pointer(regs)	((regs)->iaoq[0] & ~3)
 | 
					
						
							| 
									
										
										
										
											2009-07-05 15:59:56 -04:00
										 |  |  | #define user_stack_pointer(regs)	((regs)->gr[30])
 | 
					
						
							| 
									
										
										
										
											2005-10-21 22:42:18 -04:00
										 |  |  | unsigned long profile_pc(struct pt_regs *); | 
					
						
							| 
									
										
										
										
											2009-07-05 15:59:56 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | #endif
 |