Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Add PTRACE_ILLEGAL_ASM



details:   https://anonhg.NetBSD.org/src/rev/879857e17602
branches:  trunk
changeset: 450521:879857e17602
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Apr 16 11:38:21 2019 +0000

description:
Add PTRACE_ILLEGAL_ASM

diffstat:

 sys/arch/sparc/include/ptrace.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 8c1a2b76043d -r 879857e17602 sys/arch/sparc/include/ptrace.h
--- a/sys/arch/sparc/include/ptrace.h   Tue Apr 16 10:52:28 2019 +0000
+++ b/sys/arch/sparc/include/ptrace.h   Tue Apr 16 11:38:21 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptrace.h,v 1.11 2017/04/12 18:18:00 kamil Exp $ */
+/*     $NetBSD: ptrace.h,v 1.12 2019/04/16 11:38:21 martin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,6 +63,8 @@
 #define PTRACE_REG_SP(r)       ((register_t)(r)->r_out[6])
 #define PTRACE_REG_INTRV(r)    ((register_t)(r)->r_out[0])
 
+#define PTRACE_ILLEGAL_ASM     __asm __volatile ("illtrap 0" : : : "memory")
+
 #define PTRACE_BREAKPOINT      ((const uint8_t[]) { 0x91, 0xd0, 0x20, 0x01 })
 #define PTRACE_BREAKPOINT_ASM  __asm __volatile("ta 1")
 #define PTRACE_BREAKPOINT_SIZE 4



Home | Main Index | Thread Index | Old Index