Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include Fix 32-bit kernel build.
details: https://anonhg.NetBSD.org/src/rev/16d5f528cbd4
branches: trunk
changeset: 765444:16d5f528cbd4
user: nakayama <nakayama%NetBSD.org@localhost>
date: Fri May 27 12:41:18 2011 +0000
description:
Fix 32-bit kernel build.
diffstat:
sys/arch/sparc64/include/db_machdep.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 4ae815957746 -r 16d5f528cbd4 sys/arch/sparc64/include/db_machdep.h
--- a/sys/arch/sparc64/include/db_machdep.h Fri May 27 11:15:17 2011 +0000
+++ b/sys/arch/sparc64/include/db_machdep.h Fri May 27 12:41:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.h,v 1.30 2011/05/26 15:34:13 joerg Exp $ */
+/* $NetBSD: db_machdep.h,v 1.31 2011/05/27 12:41:18 nakayama Exp $ */
/*
* Mach Operating System
@@ -46,7 +46,11 @@
/* use 64-bit types explicitly for 32-bit kernels */
typedef vaddr_t db_addr_t; /* address - unsigned */
+#ifdef __arch64__
#define DDB_EXPR_FMT "l" /* expression is int64_t (long) */
+#else
+#define DDB_EXPR_FMT "ll" /* expression is int64_t (long long) */
+#endif
typedef int64_t db_expr_t; /* expression - signed */
struct trapstate {
Home |
Main Index |
Thread Index |
Old Index