fix warnings.

This commit is contained in:
mrg 2000-07-27 13:59:26 +00:00
parent 270fd5cc55
commit 2726e45533
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mem.c,v 1.14 2000/06/29 07:37:58 mrg Exp $ */ /* $NetBSD: mem.c,v 1.15 2000/07/27 13:59:26 mrg Exp $ */
/* /*
* Copyright (c) 1988 University of Utah. * Copyright (c) 1988 University of Utah.
@ -211,7 +211,8 @@ mmrw(dev, uio, flags)
v = uio->uio_offset; v = uio->uio_offset;
msgbufsz = msgbufp->msg_bufs + msgbufsz = msgbufp->msg_bufs +
offsetof(struct kern_msgbuf, msg_bufc); offsetof(struct kern_msgbuf, msg_bufc);
if (v >= msgbufp && v < (msgbufp + msgbufsz)) { if (v >= (vaddr_t)msgbufp &&
v < (vaddr_t)(msgbufp + msgbufsz)) {
c = min(iov->iov_len, msgbufsz); c = min(iov->iov_len, msgbufsz);
#if 1 /* Don't know where PROMs are on Ultras. Think it's at f000000 */ #if 1 /* Don't know where PROMs are on Ultras. Think it's at f000000 */
} else if (v >= prom_vstart && v < prom_vend && } else if (v >= prom_vstart && v < prom_vend &&

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.67 2000/07/18 20:19:56 pk Exp $ */ /* $NetBSD: pmap.c,v 1.68 2000/07/27 13:59:26 mrg Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */ #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF 1 #define HWREF 1
#undef BOOT_DEBUG #undef BOOT_DEBUG
@ -1223,7 +1223,7 @@ remap_data:
("Done inserting cpu_info into pmap_kernel()\r\n")); ("Done inserting cpu_info into pmap_kernel()\r\n"));
} }
vmmap = reserve_dumppages(vmmap); vmmap = (vaddr_t)reserve_dumppages((caddr_t)(u_long)vmmap);
/* /*
* Set up bounds of allocatable memory for vmstat et al. * Set up bounds of allocatable memory for vmstat et al.
*/ */