Fix some void pointers.

This commit is contained in:
ragge 1999-01-19 22:57:47 +00:00
parent 482b6ca70d
commit cb2675ff12
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba.c,v 1.40 1999/01/19 21:04:48 ragge Exp $ */ /* $NetBSD: uba.c,v 1.41 1999/01/19 22:57:47 ragge Exp $ */
/* /*
* Copyright (c) 1996 Jonathan Stone. * Copyright (c) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden. * Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -215,7 +215,7 @@ uba_dw780int(uba)
if (cold) if (cold)
scb_fake(vec + sc->uh_ibase, br); scb_fake(vec + sc->uh_ibase, br);
else { else {
struct ivec_dsp *scb_vec = (void *)scb + 512; struct ivec_dsp *scb_vec = (struct ivec_dsp *)((int)scb + 512);
func = scb_vec[vec/4].hoppaddr; func = scb_vec[vec/4].hoppaddr;
arg = scb_vec[vec/4].pushlarg; arg = scb_vec[vec/4].pushlarg;
(*func)(arg); (*func)(arg);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.57 1999/01/19 21:04:49 ragge Exp $ */ /* $NetBSD: pmap.c,v 1.58 1999/01/19 22:57:47 ragge Exp $ */
/* /*
* Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden. * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
* All rights reserved. * All rights reserved.
@ -198,10 +198,10 @@ pmap_bootstrap()
kvtopte(istack)->pg_v = 0; kvtopte(istack)->pg_v = 0;
/* Some scratch pages */ /* Some scratch pages */
scratch = (void *)istack + ISTACK_SIZE; scratch = (void *)((u_int)istack + ISTACK_SIZE);
/* Physical-to-virtual translation table */ /* Physical-to-virtual translation table */
(unsigned)pv_table = scratch + 4 * VAX_NBPG; (unsigned)pv_table = (u_int)scratch + 4 * VAX_NBPG;
avail_start = (unsigned)pv_table + (ROUND_PAGE(avail_end >> PGSHIFT)) * avail_start = (unsigned)pv_table + (ROUND_PAGE(avail_end >> PGSHIFT)) *
sizeof(struct pv_entry) - KERNBASE; sizeof(struct pv_entry) - KERNBASE;
@ -376,7 +376,7 @@ pmap_pinit(pmap)
pmap->pm_p0br = (void *)kmem_alloc_wait(pte_map, bytesiz); pmap->pm_p0br = (void *)kmem_alloc_wait(pte_map, bytesiz);
#endif #endif
pmap->pm_p0lr = vax_btoc(MAXTSIZ + MAXDSIZ + MMAPSPACE) | AST_PCB; pmap->pm_p0lr = vax_btoc(MAXTSIZ + MAXDSIZ + MMAPSPACE) | AST_PCB;
pmap->pm_p1br = (void *)pmap->pm_p0br + bytesiz - 0x800000; (vaddr_t)pmap->pm_p1br = (vaddr_t)pmap->pm_p0br + bytesiz - 0x800000;
pmap->pm_p1lr = (0x200000 - vax_btoc(MAXSSIZ)); pmap->pm_p1lr = (0x200000 - vax_btoc(MAXSSIZ));
pmap->pm_stack = USRSTACK; pmap->pm_stack = USRSTACK;
@ -688,7 +688,7 @@ if(startpmapdebug)
printf("pmap_bootstrap_alloc: size 0x %x\n",size); printf("pmap_bootstrap_alloc: size 0x %x\n",size);
#endif #endif
size = round_page(size); size = round_page(size);
mem = (void *)avail_start + KERNBASE; mem = (caddr_t)avail_start + KERNBASE;
avail_start += size; avail_start += size;
memset(mem, 0, size); memset(mem, 0, size);
return (mem); return (mem);

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba.c,v 1.40 1999/01/19 21:04:48 ragge Exp $ */ /* $NetBSD: uba.c,v 1.41 1999/01/19 22:57:47 ragge Exp $ */
/* /*
* Copyright (c) 1996 Jonathan Stone. * Copyright (c) 1996 Jonathan Stone.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden. * Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@ -215,7 +215,7 @@ uba_dw780int(uba)
if (cold) if (cold)
scb_fake(vec + sc->uh_ibase, br); scb_fake(vec + sc->uh_ibase, br);
else { else {
struct ivec_dsp *scb_vec = (void *)scb + 512; struct ivec_dsp *scb_vec = (struct ivec_dsp *)((int)scb + 512);
func = scb_vec[vec/4].hoppaddr; func = scb_vec[vec/4].hoppaddr;
arg = scb_vec[vec/4].pushlarg; arg = scb_vec[vec/4].pushlarg;
(*func)(arg); (*func)(arg);