Subject: port-sparc/9283: make sparc kernel failure: fd.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Y. Takizawa <you@nightbreak.org>
List: netbsd-bugs
Date: 01/23/2000 12:30:44
>Number: 9283
>Category: port-sparc
>Synopsis: make sparc kernel failure: fd.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sparc-maintainer (NetBSD/sparc Portmaster)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 23 12:30:00 2000
>Last-Modified:
>Originator: Y. Takizawa
>Organization:
>Release: NetBSD-current 1.4Q 20000121
>Environment:
>Description:
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -I../../../../../gnu/sys -DSUN4 -DSUN4C -DSUN4M -DRASTERCONSOLE -DLKM -DMAXUSERS=32 -D_KERNEL -c ../../../../arch/sparc/dev/fd.c
../../../../arch/sparc/dev/fd.c: In function `fdcstate':
../../../../arch/sparc/dev/fd.c:1492: structure has no member named `b_cylin'
*** Error code 1
Stop.
>How-To-Repeat:
>Fix:
--- sys/arch/sparc/dev/fd.c.orig Mon Jan 24 03:57:12 2000
+++ sys/arch/sparc/dev/fd.c Mon Jan 24 04:48:31 2000
@@ -1489,7 +1489,7 @@
/* seek function */
FDC_WRFIFO(fdc, NE7CMD_SEEK);
FDC_WRFIFO(fdc, fd->sc_drive); /* drive number */
- FDC_WRFIFO(fdc, bp->b_cylin * fd->sc_type->step);
+ FDC_WRFIFO(fdc, bp->b_cylinder * fd->sc_type->step);
return (1);
case DOIO:
>Audit-Trail:
>Unformatted: