-/* $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
p->bd_id != error; p++);
printf("\nBIOS error %x (%s)\n",
p->bd_id, p->msg);
- biosdreset();
+ biosdreset(bd->biosdev);
break;
}
}
-/* $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
/* 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 *));
-/* $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
pushl %ecx
movb $0x00, %ah # reset disk system
+ movb 8(%ebp), %dl # drive #
BIOSINT(0x13)
popl %ecx