Module Name: src
Committed By: nakayama
Date: Fri May 27 12:41:18 UTC 2011
Modified Files:
src/sys/arch/sparc64/include: db_machdep.h
Log Message:
Fix 32-bit kernel build.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/sparc64/include/db_machdep.h
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/sparc64/include/db_machdep.h
diff -u src/sys/arch/sparc64/include/db_machdep.h:1.30 src/sys/arch/sparc64/include/db_machdep.h:1.31
--- src/sys/arch/sparc64/include/db_machdep.h:1.30 Thu May 26 15:34:13 2011
+++ src/sys/arch/sparc64/include/db_machdep.h Fri May 27 12:41:18 2011
@@ -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 {