forked from mirrors/linux
		
	 ea036230f7
			
		
	
	
		ea036230f7
		
	
	
	
	
		
			
			The declarations of arch-specific functions have been moved to a common
header in commit 3820b4d278 ('uprobes: Move function declarations out
of arch'), but MIPS and S390 has added them to their own trees later.
Remove the unnecessary duplicates.
Link: http://lkml.kernel.org/r/1472804384-17830-1-git-send-email-marcin.nowakowski@imgtec.com
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
	
			
		
			
				
	
	
		
			45 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * This file is subject to the terms and conditions of the GNU General Public
 | |
|  * License.  See the file "COPYING" in the main directory of this archive
 | |
|  * for more details.
 | |
|  */
 | |
| #ifndef __ASM_UPROBES_H
 | |
| #define __ASM_UPROBES_H
 | |
| 
 | |
| #include <linux/notifier.h>
 | |
| #include <linux/types.h>
 | |
| 
 | |
| #include <asm/break.h>
 | |
| #include <asm/inst.h>
 | |
| 
 | |
| /*
 | |
|  * We want this to be defined as union mips_instruction but that makes the
 | |
|  * generic code blow up.
 | |
|  */
 | |
| typedef u32 uprobe_opcode_t;
 | |
| 
 | |
| /*
 | |
|  * Classic MIPS (note this implementation doesn't consider microMIPS yet)
 | |
|  * instructions are always 4 bytes but in order to deal with branches and
 | |
|  * their delay slots, we treat instructions as having 8 bytes maximum.
 | |
|  */
 | |
| #define MAX_UINSN_BYTES			8
 | |
| #define UPROBE_XOL_SLOT_BYTES		128	/* Max. cache line size */
 | |
| 
 | |
| #define UPROBE_BRK_UPROBE		0x000d000d	/* break 13 */
 | |
| #define UPROBE_BRK_UPROBE_XOL		0x000e000d	/* break 14 */
 | |
| 
 | |
| #define UPROBE_SWBP_INSN		UPROBE_BRK_UPROBE
 | |
| #define UPROBE_SWBP_INSN_SIZE		4
 | |
| 
 | |
| struct arch_uprobe {
 | |
| 	unsigned long	resume_epc;
 | |
| 	u32	insn[2];
 | |
| 	u32	ixol[2];
 | |
| };
 | |
| 
 | |
| struct arch_uprobe_task {
 | |
| 	unsigned long saved_trap_nr;
 | |
| };
 | |
| 
 | |
| #endif /* __ASM_UPROBES_H */
 |