Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include work around lint issue (inspired by si...
details: https://anonhg.NetBSD.org/src/rev/c6ae6ce3b4d3
branches: trunk
changeset: 510822:c6ae6ce3b4d3
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 07 04:44:05 2001 +0000
description:
work around lint issue (inspired by similar work in sparc port)
diffstat:
sys/arch/i386/include/db_machdep.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 7c904d1ac944 -r c6ae6ce3b4d3 sys/arch/i386/include/db_machdep.h
--- a/sys/arch/i386/include/db_machdep.h Thu Jun 07 03:51:53 2001 +0000
+++ b/sys/arch/i386/include/db_machdep.h Thu Jun 07 04:44:05 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.h,v 1.15 2000/06/29 08:44:57 mrg Exp $ */
+/* $NetBSD: db_machdep.h,v 1.16 2001/06/07 04:44:05 lukem Exp $ */
/*
* Mach Operating System
@@ -44,7 +44,11 @@
db_regs_t ddb_regs; /* register state */
#define DDB_REGS (&ddb_regs)
+#if defined(lint)
+#define PC_REGS(regs) ((regs)->tf_eip)
+#else
#define PC_REGS(regs) ((db_addr_t)(regs)->tf_eip)
+#endif
#define BKPT_INST 0xcc /* breakpoint instruction */
#define BKPT_SIZE (1) /* size of breakpoint inst */
Home |
Main Index |
Thread Index |
Old Index