Fix from Bruce Evans:

Set npx_exists = 0 in the case of broken error reporting.
This commit is contained in:
dg 1994-06-11 05:17:15 +00:00
parent d5fc783f27
commit c19ab010d2
3 changed files with 12 additions and 6 deletions

View File

@ -321,10 +321,12 @@ npxattach(dvp)
struct isa_device *dvp;
{
if (!npx_ex16 && !npx_irq13) {
if (npx_exists)
if (npx_exists) {
printf("npx%d: Error reporting broken, using 387 emulator\n",dvp->id_unit);
else
npx_exists = 0;
} else {
printf("npx%d: 387 Emulator\n",dvp->id_unit);
}
}
npxinit(__INITIAL_NPXCW__);
return (1); /* XXX unused */

View File

@ -321,10 +321,12 @@ npxattach(dvp)
struct isa_device *dvp;
{
if (!npx_ex16 && !npx_irq13) {
if (npx_exists)
if (npx_exists) {
printf("npx%d: Error reporting broken, using 387 emulator\n",dvp->id_unit);
else
npx_exists = 0;
} else {
printf("npx%d: 387 Emulator\n",dvp->id_unit);
}
}
npxinit(__INITIAL_NPXCW__);
return (1); /* XXX unused */

View File

@ -321,10 +321,12 @@ npxattach(dvp)
struct isa_device *dvp;
{
if (!npx_ex16 && !npx_irq13) {
if (npx_exists)
if (npx_exists) {
printf("npx%d: Error reporting broken, using 387 emulator\n",dvp->id_unit);
else
npx_exists = 0;
} else {
printf("npx%d: 387 Emulator\n",dvp->id_unit);
}
}
npxinit(__INITIAL_NPXCW__);
return (1); /* XXX unused */