Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc The function prom_pa_location casts mag...



details:   https://anonhg.NetBSD.org/src/rev/40720e10c75c
branches:  trunk
changeset: 559752:40720e10c75c
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Mar 23 11:40:29 2004 +0000

description:
The function prom_pa_location casts magic spells that probably won't
work on 64 bit kernels (and at least do not compile). Since this function
is not used there, #ifndef _LP64 it for now.

diffstat:

 sys/arch/sparc/sparc/promlib.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 334b52df03d2 -r 40720e10c75c sys/arch/sparc/sparc/promlib.c
--- a/sys/arch/sparc/sparc/promlib.c    Tue Mar 23 10:50:31 2004 +0000
+++ b/sys/arch/sparc/sparc/promlib.c    Tue Mar 23 11:40:29 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: promlib.c,v 1.32 2004/03/22 12:37:43 pk Exp $ */
+/*     $NetBSD: promlib.c,v 1.33 2004/03/23 11:40:29 martin Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: promlib.c,v 1.32 2004/03/22 12:37:43 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: promlib.c,v 1.33 2004/03/23 11:40:29 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sparc_arch.h"
@@ -1093,6 +1093,7 @@
        memcpy(cp, idp->id_ether, 6);
 }
 
+#ifndef _LP64
 /*
  * The integer property "get-unum" on the root device is the address
  * of a callable function in the PROM that takes a physical address
@@ -1129,6 +1130,7 @@
 
        return (str);
 }
+#endif
 
 static void prom_init_oldmon(void);
 static void prom_init_obp(void);



Home | Main Index | Thread Index | Old Index