diff options
Diffstat (limited to 'sys/arch/vax/boot/tmscp.c')
-rw-r--r-- | sys/arch/vax/boot/tmscp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/vax/boot/tmscp.c b/sys/arch/vax/boot/tmscp.c index eb143e61426..f5d0fe11879 100644 --- a/sys/arch/vax/boot/tmscp.c +++ b/sys/arch/vax/boot/tmscp.c @@ -1,4 +1,4 @@ -/* $NetBSD: tmscp.c,v 1.1 1995/09/16 12:57:35 ragge Exp $ */ +/* $NetBSD: tmscp.c,v 1.2 1996/02/17 18:23:24 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. * All rights reserved. @@ -91,7 +91,7 @@ tmscpopen(f, adapt, ctlr, unit, part) ra->ubaddr=(int)mr; ra->unit=unit; udacsr=(void*)ra->udaddr; - nisse=&mr->uba_map[0]; + nisse=(u_int *)&mr->uba_map[0]; nisse[494]=PG_V|(((u_int)&uda)>>9); nisse[495]=nisse[494]+1; ubauda=(void*)0x3dc00+(((u_int)(&uda))&0x1ff); @@ -112,8 +112,8 @@ tmscpopen(f, adapt, ctlr, unit, part) uda.uda_ca.ca_rspdsc=(int)&ubauda->uda_rsp.mscp_cmdref; uda.uda_ca.ca_cmddsc=(int)&ubauda->uda_cmd.mscp_cmdref; - uda.uda_cmd.mscp_un.un_seq.seq_addr = &uda.uda_ca.ca_cmddsc; - uda.uda_rsp.mscp_un.un_seq.seq_addr = &uda.uda_ca.ca_rspdsc; + uda.uda_cmd.mscp_un.un_seq.seq_addr = (long *)&uda.uda_ca.ca_cmddsc; + uda.uda_rsp.mscp_un.un_seq.seq_addr = (long *)&uda.uda_ca.ca_rspdsc; uda.uda_cmd.mscp_vcid = 1; uda.uda_cmd.mscp_un.un_sccc.sccc_ctlrflags = 0; @@ -164,7 +164,7 @@ tmscpstrategy(ra, func, dblk, size, buf, rsize) u_int i,j,pfnum, mapnr, nsize, bn, cn, sn, tn; volatile struct uba_regs *ur=(void *)ra->ubaddr; volatile struct udadevice *udadev=(void*)ra->udaddr; - volatile u_int *ptmapp=&ur->uba_map[0]; + volatile u_int *ptmapp = (u_int *)&ur->uba_map[0]; volatile int hej; pfnum=(u_int)buf>>PGSHIFT; |