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 need swap for aarch64be



details:   https://anonhg.NetBSD.org/src/rev/4ba2b1cc390a
branches:  trunk
changeset: 954568:4ba2b1cc390a
user:      ryo <ryo%NetBSD.org@localhost>
date:      Sun Sep 06 17:43:31 2020 +0000

description:
need swap for aarch64be

diffstat:

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

diffs (21 lines):

diff -r 2e7659c96b26 -r 4ba2b1cc390a sys/arch/aarch64/include/ptrace.h
--- a/sys/arch/aarch64/include/ptrace.h Sun Sep 06 17:38:10 2020 +0000
+++ b/sys/arch/aarch64/include/ptrace.h Sun Sep 06 17:43:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.10 2020/07/02 13:04:47 rin Exp $ */
+/* $NetBSD: ptrace.h,v 1.11 2020/09/06 17:43:31 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -62,7 +62,11 @@
 #define PTRACE_REG_SP(r)       (r)->r_sp
 #define PTRACE_REG_INTRV(r)    (r)->r_reg[0]
 
+#ifdef __AARCH64EB__
+#define PTRACE_BREAKPOINT      ((const uint8_t[]) { 0xd4, 0x20, 0x01, 0xa0 })
+#else
 #define PTRACE_BREAKPOINT      ((const uint8_t[]) { 0xa0, 0x01, 0x20, 0xd4 })
+#endif
 #define PTRACE_BREAKPOINT_ASM  __asm __volatile("brk #13" ::: "memory")
 #define PTRACE_BREAKPOINT_SIZE 4
 



Home | Main Index | Thread Index | Old Index