Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/stand/ofwboot avoid some warnings on powerpc64.



details:   https://anonhg.NetBSD.org/src/rev/d206076e5864
branches:  trunk
changeset: 753436:d206076e5864
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Mar 29 00:13:32 2010 +0000

description:
avoid some warnings on powerpc64.

diffstat:

 sys/arch/macppc/stand/ofwboot/boot.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 25797c8f43aa -r d206076e5864 sys/arch/macppc/stand/ofwboot/boot.c
--- a/sys/arch/macppc/stand/ofwboot/boot.c      Sun Mar 28 22:03:51 2010 +0000
+++ b/sys/arch/macppc/stand/ofwboot/boot.c      Mon Mar 29 00:13:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.23 2009/01/28 15:03:28 tsutsui Exp $        */
+/*     $NetBSD: boot.c,v 1.24 2010/03/29 00:13:32 mrg Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -332,8 +332,8 @@
        esym = (void *)marks[MARK_END];
 
        printf(" start=0x%x\n", entry);
-       __syncicache((void *) entry, (u_int) ssym - (u_int) entry);
-       chain((boot_entry_t) entry, bootline, ssym, esym);
+       __syncicache((void *)(uintptr_t)entry, (size_t)ssym - entry);
+       chain((boot_entry_t)(uintptr_t)entry, bootline, ssym, esym);
 
        OF_exit();
 }



Home | Main Index | Thread Index | Old Index