From a4f694d0d461e1b4b9648f709ae85d3c59a3c140 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 14 Dec 2024 09:02:12 +0000 Subject: [PATCH] floppy: Do not probe number of cylinders in drive signal test The probe test: 1. It isn't a signal test 2. It bangs the head on a 48-tpi drive 3. It doesn't actually find the true cylinder range as it never steps beyond cylinder 79 Thus the probe is fairly pointless and best to simply remove it. --- testkit/floppy.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/testkit/floppy.c b/testkit/floppy.c index 4d68550..3032895 100644 --- a/testkit/floppy.c +++ b/testkit/floppy.c @@ -310,13 +310,8 @@ static unsigned int drive_signal_test(unsigned int drv, struct char_row *r) drive_wait_ready(); seek_cyl0(); - if (cur_cyl == 0) { - unsigned int nr_cyls; - seek_track(159); - nr_cyls = seek_cyl0() + 1; - if (cur_cyl == 0) - sprintf(s, "-- DF%u: %u cylinders --", drv, nr_cyls); - } + if (cur_cyl == 0) + sprintf(s, "-- DF%u: %u cylinders --", drv, drive_param.nr_cyls); if (cur_cyl < 0) sprintf(s, "-- DF%u: No Track 0 (Drive not present?) --", drv); print_line(r);