Module Name: src Committed By: martin Date: Mon May 24 11:13:44 UTC 2021
Modified Files: src/sys/arch/macppc/stand/ofwboot: ofdev.c Log Message: PR 56205: make the 64bit build work To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/macppc/stand/ofwboot/ofdev.c 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/macppc/stand/ofwboot/ofdev.c diff -u src/sys/arch/macppc/stand/ofwboot/ofdev.c:1.28 src/sys/arch/macppc/stand/ofwboot/ofdev.c:1.29 --- src/sys/arch/macppc/stand/ofwboot/ofdev.c:1.28 Sun Feb 28 20:27:40 2021 +++ src/sys/arch/macppc/stand/ofwboot/ofdev.c Mon May 24 11:13:44 2021 @@ -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 @@ devclose(struct open_file *of) 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 @@ devopen(struct open_file *of, const char 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;