Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 Make pointer formats work with a 32...



details:   https://anonhg.NetBSD.org/src/rev/161c3d8736b7
branches:  trunk
changeset: 500741:161c3d8736b7
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Dec 17 21:54:20 2000 +0000

description:
Make pointer formats work with a 32-bit compiler.

diffstat:

 sys/arch/sparc64/sparc64/compat_13_machdep.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 17a9b152839e -r 161c3d8736b7 sys/arch/sparc64/sparc64/compat_13_machdep.c
--- a/sys/arch/sparc64/sparc64/compat_13_machdep.c      Sun Dec 17 21:50:14 2000 +0000
+++ b/sys/arch/sparc64/sparc64/compat_13_machdep.c      Sun Dec 17 21:54:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_13_machdep.c,v 1.9 2000/08/01 00:28:55 eeh Exp $        */
+/*     $NetBSD: compat_13_machdep.c,v 1.10 2000/12/17 21:54:20 pk Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -120,7 +120,8 @@
        if (((scp->sc_pc | scp->sc_npc) & 3) != 0 || scp->sc_pc == 0 || scp->sc_npc == 0)
 #ifdef DEBUG
        {
-               printf("compat_13_sys_sigreturn: pc %p or npc %p invalid\n", scp->sc_pc, scp->sc_npc);
+               printf("compat_13_sys_sigreturn: pc %qx or npc %qx invalid\n",
+                       (u_int64_t)scp->sc_pc, (u_int64_t)scp->sc_npc);
 #ifdef DDB
                Debugger();
 #endif
@@ -141,8 +142,9 @@
        tf->tf_out[6] = scp->sc_sp;
 #ifdef DEBUG
        if (sigdebug & SDB_FOLLOW) {
-               printf("compat_13_sys_sigreturn: return trapframe pc=%p sp=%p tstate=%llx\n",
-                      (vaddr_t)tf->tf_pc, (vaddr_t)tf->tf_out[6], tf->tf_tstate);
+               printf("compat_13_sys_sigreturn: return trapframe pc=%qx sp=%qx tstate=%qx\n",
+                       (u_int64_t)tf->tf_pc, (u_int64_t)tf->tf_out[6],
+                       (u_int64_t)tf->tf_tstate);
 #ifdef DDB
                if (sigdebug & SDB_DDB) Debugger();
 #endif



Home | Main Index | Thread Index | Old Index