Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include don't depend endian.



details:   https://anonhg.NetBSD.org/src/rev/790fd423b07d
branches:  trunk
changeset: 320819:790fd423b07d
user:      ryo <ryo%NetBSD.org@localhost>
date:      Sat Jul 21 18:58:05 2018 +0000

description:
don't depend endian.

diffstat:

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

diffs (18 lines):

diff -r 7f03800e5308 -r 790fd423b07d sys/arch/aarch64/include/ptrace.h
--- a/sys/arch/aarch64/include/ptrace.h Sat Jul 21 18:50:22 2018 +0000
+++ b/sys/arch/aarch64/include/ptrace.h Sat Jul 21 18:58:05 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.6 2018/07/20 20:49:59 christos Exp $ */
+/* $NetBSD: ptrace.h,v 1.7 2018/07/21 18:58:05 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 #define PTRACE_REG_INTRV(r)    (r)->r_reg[0]
 
 #define PTRACE_BREAKPOINT      ((const uint8_t[]) { 0xa0, 0x01, 0x20, 0xd4 })
-#define PTRACE_BREAKPOINT_ASM  __asm __volatile(".word 0xa00120d4" ::: "memory")
+#define PTRACE_BREAKPOINT_ASM  __asm __volatile("brk #13" ::: "memory")
 #define PTRACE_BREAKPOINT_SIZE 4
 
 #elif defined(__arm__)



Home | Main Index | Thread Index | Old Index