diff options
| author | leo <leo@NetBSD.org> | 1995-05-05 16:38:05 +0000 |
|---|---|---|
| committer | leo <leo@NetBSD.org> | 1995-05-05 16:38:05 +0000 |
| commit | 231b64341e898a5abf599cc7056d059727bbae42 (patch) | |
| tree | 30a781eb317785d898747952a9f5d2f319e7d8a6 /sys/arch/atari/dev | |
| parent | ec3a1cd9f7a022e3ca7b8dcde7c48805fc88747d (diff) | |
Fix bug on handling HD-floppy's.
Diffstat (limited to 'sys/arch/atari/dev')
| -rw-r--r-- | sys/arch/atari/dev/fd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/atari/dev/fd.c b/sys/arch/atari/dev/fd.c index c5f65669c06..8cc15dce7ff 100644 --- a/sys/arch/atari/dev/fd.c +++ b/sys/arch/atari/dev/fd.c @@ -1,4 +1,4 @@ -/* $NetBSD: fd.c,v 1.5 1995/04/30 12:06:01 leo Exp $ */ +/* $NetBSD: fd.c,v 1.6 1995/05/05 16:38:05 leo Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -404,7 +404,7 @@ struct proc *proc; /* * Go get write protect + loaded status */ - sc->flags = FLPF_INOPEN|FLPF_GETSTAT; + sc->flags |= FLPF_INOPEN|FLPF_GETSTAT; sps = splbio(); st_dmagrab(fdcint, fdstatus, sc, &lock_stat, 0); while(sc->flags & FLPF_GETSTAT) @@ -420,7 +420,8 @@ struct proc *proc; sc->flags = 0; return(ENXIO); } - sc->flags = FLPF_ISOPEN; + sc->flags &= ~(FLPF_INOPEN|FLPF_GETSTAT); + sc->flags |= FLPF_ISOPEN; } else { /* |
