Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/include Provide PTRACE_ILLEGAL_ASM, using an il...
details: https://anonhg.NetBSD.org/src/rev/2beb1caed8a3
branches: trunk
changeset: 460025:2beb1caed8a3
user: maya <maya%NetBSD.org@localhost>
date: Fri Oct 04 15:25:30 2019 +0000
description:
Provide PTRACE_ILLEGAL_ASM, using an illegal slot instruction
diffstat:
sys/arch/sh3/include/ptrace.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r a87a0ee3f29b -r 2beb1caed8a3 sys/arch/sh3/include/ptrace.h
--- a/sys/arch/sh3/include/ptrace.h Fri Oct 04 14:17:07 2019 +0000
+++ b/sys/arch/sh3/include/ptrace.h Fri Oct 04 15:25:30 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.15 2019/06/18 21:18:13 kamil Exp $ */
+/* $NetBSD: ptrace.h,v 1.16 2019/10/04 15:25:30 maya Exp $ */
/*
* Copyright (c) 1993 Christopher G. Demetriou
@@ -72,6 +72,8 @@
#define PTRACE_REG_SP(r) r->r_r15
#define PTRACE_REG_INTV(r) r->r_r0
+#define PTRACE_ILLEGAL_ASM __asm __volatile ("0: bra 0b; bra 0b" : : : "memory")
+
#define PTRACE_BREAKPOINT_TRAP 0xc3
#define PTRACE_BREAKPOINT ((const uint8_t[]) { 0xc3, 0xc3 })
#define PTRACE_BREAKPOINT_ASM __asm __volatile("trapa %0" :: "i"(PTRACE_BREAKPOINT_TRAP))
Home |
Main Index |
Thread Index |
Old Index