Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 db_trace.c: Make parens balanced across #ifdef
details: https://anonhg.NetBSD.org/src/rev/b251426fba48
branches: trunk
changeset: 372757:b251426fba48
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Dec 24 02:31:43 2022 +0000
description:
db_trace.c: Make parens balanced across #ifdef
Same object code is generated on both i386 and amd64.
diffstat:
sys/arch/x86/x86/db_trace.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r c3e88f5c8e20 -r b251426fba48 sys/arch/x86/x86/db_trace.c
--- a/sys/arch/x86/x86/db_trace.c Sat Dec 24 00:34:53 2022 +0000
+++ b/sys/arch/x86/x86/db_trace.c Sat Dec 24 02:31:43 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.4 2018/02/11 08:27:18 maxv Exp $ */
+/* $NetBSD: db_trace.c,v 1.5 2022/12/24 02:31:43 uwe Exp $ */
/*
* Mach Operating System
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.4 2018/02/11 08:27:18 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.5 2022/12/24 02:31:43 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -212,16 +212,17 @@
offset = 1;
if (
#ifdef __x86_64__
- instr == 0xe5894855 ||
+ (instr == 0xe5894855 ||
/* enter: pushq %rbp, movq %rsp, %rbp */
(instr & 0x00ffffff) == 0x0048e589
/* enter+1: movq %rsp, %rbp */)
#else
- (instr & 0x00ffffff) == 0x00e58955 ||
+ ((instr & 0x00ffffff) == 0x00e58955 ||
/* enter: pushl %ebp, movl %esp, %ebp */
(instr & 0x0000ffff) == 0x0000e589
/* enter+1: movl %esp, %ebp */)
#endif
+ )
{
offset = 0;
}
Home |
Main Index |
Thread Index |
Old Index