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 PR 56205: make the 64bit build...



details:   https://anonhg.NetBSD.org/src/rev/9ab87ef89683
branches:  trunk
changeset: 1021295:9ab87ef89683
user:      martin <martin%NetBSD.org@localhost>
date:      Mon May 24 11:13:44 2021 +0000

description:
PR 56205: make the 64bit build work

diffstat:

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

diffs (27 lines):

diff -r 5ac88418c8b9 -r 9ab87ef89683 sys/arch/macppc/stand/ofwboot/ofdev.c
--- a/sys/arch/macppc/stand/ofwboot/ofdev.c     Mon May 24 10:44:06 2021 +0000
+++ b/sys/arch/macppc/stand/ofwboot/ofdev.c     Mon May 24 11:13:44 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofdev.c,v 1.28 2021/02/28 20:27:40 thorpej Exp $       */
+/*     $NetBSD: ofdev.c,v 1.29 2021/05/24 11:13:44 martin Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -103,7 +103,7 @@
        uint32_t cells[2];
        struct of_dev *op = of->f_devdata;
 
-       cells[0] = (uint32_t)op->dmabuf;
+       cells[0] = (uintptr_t)op->dmabuf;
        cells[1] = MAXPHYS;
 
        if (op->type == OFDEV_NET)
@@ -439,7 +439,7 @@
        ofdev.dmabuf = NULL;
        cells[0] = MAXPHYS;
        OF_call_method("dma-alloc", handle, 1, 1, (int *)cells);
-       ofdev.dmabuf = (void *)cells[1];
+       ofdev.dmabuf = (void*)(uintptr_t)cells[1];
        if (!strcmp(buf, "block")) {
                ofdev.type = OFDEV_DISK;
                ofdev.bsize = DEV_BSIZE;



Home | Main Index | Thread Index | Old Index