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 Make the illegal instruction macro sa...



details:   https://anonhg.NetBSD.org/src/rev/220f76195bc4
branches:  trunk
changeset: 455908:220f76195bc4
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Apr 17 15:42:02 2019 +0000

description:
Make the illegal instruction macro safe, so the compiler does not fear it
would be an illegal instruction when compiling with certain cpu options.

diffstat:

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

diffs (18 lines):

diff -r 01d93899242a -r 220f76195bc4 sys/arch/sparc/include/ptrace.h
--- a/sys/arch/sparc/include/ptrace.h   Wed Apr 17 14:06:48 2019 +0000
+++ b/sys/arch/sparc/include/ptrace.h   Wed Apr 17 15:42:02 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptrace.h,v 1.12 2019/04/16 11:38:21 martin Exp $ */
+/*     $NetBSD: ptrace.h,v 1.13 2019/04/17 15:42:02 martin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,7 +63,7 @@
 #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_ILLEGAL_ASM     __asm __volatile (".word 0" : : : "memory")
 
 #define PTRACE_BREAKPOINT      ((const uint8_t[]) { 0x91, 0xd0, 0x20, 0x01 })
 #define PTRACE_BREAKPOINT_ASM  __asm __volatile("ta 1")



Home | Main Index | Thread Index | Old Index