Module Name: src
Committed By: tsutsui
Date: Thu Nov 22 20:15:50 UTC 2012
Modified Files:
src/sys/arch/x68k/stand/libsa: sdcd.c
Log Message:
Make sure to initialize partition offset in cdopen(),
i.e. fix an uninitialized auto variable which happened
to be zero on XM6i emulator.
Now cdboot also works on real X68030.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x68k/stand/libsa/sdcd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x68k/stand/libsa/sdcd.c
diff -u src/sys/arch/x68k/stand/libsa/sdcd.c:1.13 src/sys/arch/x68k/stand/libsa/sdcd.c:1.14
--- src/sys/arch/x68k/stand/libsa/sdcd.c:1.13 Tue Jun 19 12:59:17 2012
+++ src/sys/arch/x68k/stand/libsa/sdcd.c Thu Nov 22 20:15:49 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: sdcd.c,v 1.13 2012/06/19 12:59:17 minoura Exp $ */
+/* $NetBSD: sdcd.c,v 1.14 2012/11/22 20:15:49 tsutsui Exp $ */
/*
* Copyright (c) 2001 MINOURA Makoto.
@@ -339,6 +339,7 @@ cdopen(struct open_file *f, ...)
sc = alloc(sizeof(struct sdcd_softc));
current_npart = 3;
sc->sc_part = 0;
+ sc->sc_partinfo.start = 0;
sc->sc_partinfo.size = current_devsize;
sc->sc_blocksize = current_blklen << 9;
f->f_devdata = sc;