From 085ba4ef5cb5956ceae3a43e7cc50356cc4a6460 Mon Sep 17 00:00:00 2001 From: weingart Date: Wed, 23 Apr 1997 14:49:23 +0000 Subject: [PATCH] Clean up disk reset code --- sys/arch/i386/stand/libsa/biosdev.c | 4 ++-- sys/arch/i386/stand/libsa/biosdev.h | 4 ++-- sys/arch/i386/stand/libsa/biosdisk.S | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 7c4a944888a..073a94eae33 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.13 1997/04/23 06:49:06 mickey Exp $ */ +/* $OpenBSD: biosdev.c,v 1.14 1997/04/23 14:49:23 weingart Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -333,7 +333,7 @@ biosstrategy(void *devdata, int rw, p->bd_id != error; p++); printf("\nBIOS error %x (%s)\n", p->bd_id, p->msg); - biosdreset(); + biosdreset(bd->biosdev); break; } } diff --git a/sys/arch/i386/stand/libsa/biosdev.h b/sys/arch/i386/stand/libsa/biosdev.h index 43dcbdc100f..fd556f44e3a 100644 --- a/sys/arch/i386/stand/libsa/biosdev.h +++ b/sys/arch/i386/stand/libsa/biosdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.h,v 1.6 1997/04/21 20:20:27 mickey Exp $ */ +/* $OpenBSD: biosdev.h,v 1.7 1997/04/23 14:49:23 weingart Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -50,7 +50,7 @@ int biosioctl __P((struct open_file *, u_long, void *)); /* biosdisk.S */ u_int16_t biosdinfo __P((int dev)); -int biosdreset __P((void)); +int biosdreset __P((int dev)); int biosread __P((int dev, int cyl, int hd, int sect, int nsect, void *)); int bioswrite __P((int dev, int cyl, int hd, int sect, int nsect, void *)); diff --git a/sys/arch/i386/stand/libsa/biosdisk.S b/sys/arch/i386/stand/libsa/biosdisk.S index 99282717071..84267f3e836 100644 --- a/sys/arch/i386/stand/libsa/biosdisk.S +++ b/sys/arch/i386/stand/libsa/biosdisk.S @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdisk.S,v 1.7 1997/04/18 17:48:23 mickey Exp $ */ +/* $OpenBSD: biosdisk.S,v 1.8 1997/04/23 14:49:24 weingart Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -125,6 +125,7 @@ ENTRY(biosdreset) pushl %ecx movb $0x00, %ah # reset disk system + movb 8(%ebp), %dl # drive # BIOSINT(0x13) popl %ecx -- 2.20.1