Module Name: src Committed By: rin Date: Sun Jul 21 16:12:59 UTC 2019
Modified Files: src/sys/arch/arm/arm32: db_interface.c Log Message: Fix hand-crafted trap instruction in cpu_Debugger() for big endian. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/arch/arm/arm32/db_interface.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/arm32/db_interface.c diff -u src/sys/arch/arm/arm32/db_interface.c:1.58 src/sys/arch/arm/arm32/db_interface.c:1.59 --- src/sys/arch/arm/arm32/db_interface.c:1.58 Mon May 28 21:05:00 2018 +++ src/sys/arch/arm/arm32/db_interface.c Sun Jul 21 16:12:59 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.58 2018/05/28 21:05:00 chs Exp $ */ +/* $NetBSD: db_interface.c,v 1.59 2019/07/21 16:12:59 rin Exp $ */ /* * Copyright (c) 1996 Scott K. Stevens @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.58 2018/05/28 21:05:00 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.59 2019/07/21 16:12:59 rin Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -302,7 +302,11 @@ db_write_bytes(vaddr_t addr, size_t size void cpu_Debugger(void) { +#if _BYTE_ORDER == _LITTLE_ENDIAN __asm(".word 0xe7ffffff"); +#else + __asm(".word 0xffffffe7"); +#endif } int