fix warnings.
This commit is contained in:
parent
71e8303856
commit
ac301375d9
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: fd.c,v 1.33 2007/10/17 19:52:53 garbled Exp $ */
|
/* $NetBSD: fd.c,v 1.34 2007/10/25 12:48:11 yamt Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.33 2007/10/17 19:52:53 garbled Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.34 2007/10/25 12:48:11 yamt Exp $");
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
|
||||||
|
@ -1073,7 +1073,8 @@ loop:
|
||||||
fdc->sc_fh.fh_regs = &fdc->sc_fr;
|
fdc->sc_fh.fh_regs = &fdc->sc_fr;
|
||||||
fdc->sc_fr.fr_r9 = IOMD_BASE + (IOMD_FIQRQ << 2);
|
fdc->sc_fr.fr_r9 = IOMD_BASE + (IOMD_FIQRQ << 2);
|
||||||
fdc->sc_fr.fr_r10 = fd->sc_nbytes;
|
fdc->sc_fr.fr_r10 = fd->sc_nbytes;
|
||||||
fdc->sc_fr.fr_r11 = (u_int)(bp->b_data + fd->sc_skip);
|
fdc->sc_fr.fr_r11 =
|
||||||
|
(u_int)((uintptr_t)bp->b_data + fd->sc_skip);
|
||||||
fdc->sc_fr.fr_r12 = fdc->sc_drq;
|
fdc->sc_fr.fr_r12 = fdc->sc_drq;
|
||||||
#ifdef FD_DEBUG
|
#ifdef FD_DEBUG
|
||||||
printf("fdc-doio:r9=%x r10=%x r11=%x r12=%x data=%x skip=%x\n",
|
printf("fdc-doio:r9=%x r10=%x r11=%x r12=%x data=%x skip=%x\n",
|
||||||
|
@ -1625,7 +1626,7 @@ load_memory_disc_from_floppy(md, dev)
|
||||||
if (biowait(bp))
|
if (biowait(bp))
|
||||||
panic("Cannot load floppy image");
|
panic("Cannot load floppy image");
|
||||||
|
|
||||||
memcpy((void *)md->md_addr + loop * fd_types[type].sectrac
|
memcpy((char *)md->md_addr + loop * fd_types[type].sectrac
|
||||||
* DEV_BSIZE, (void *)bp->b_data,
|
* DEV_BSIZE, (void *)bp->b_data,
|
||||||
fd_types[type].sectrac * DEV_BSIZE);
|
fd_types[type].sectrac * DEV_BSIZE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue