git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel/arm7 - Tiny bugfix in NewKThread
[tpg/acess2.git]
/
Modules
/
Storage
/
FDD
/
fdd.c
diff --git
a/Modules/Storage/FDD/fdd.c
b/Modules/Storage/FDD/fdd.c
index
a7b20f7
..
2de321d
100644
(file)
--- a/
Modules/Storage/FDD/fdd.c
+++ b/
Modules/Storage/FDD/fdd.c
@@
-707,8
+707,12
@@
int FDD_int_SendByte(int base, Uint8 byte)
{
tTime end = now() + 1000; // 1s
- while( (inb(base + PORT_MAINSTATUS) & 0x
C
0) != 0x80 && now() < end )
+ while( (inb(base + PORT_MAINSTATUS) & 0x
8
0) != 0x80 && now() < end )
Threads_Yield(); //Delay
+
+ if( inb(base + PORT_MAINSTATUS) & 0x40 ) {
+ Log_Warning("FDD", "FDD_int_SendByte: DIO set, is this ok?");
+ }
if( now() < end )
{
@@
-731,9
+735,13
@@
int FDD_int_GetByte(int base, Uint8 *value)
{
tTime end = now() + 1000; // 1s
- while( (inb(base + PORT_MAINSTATUS) & 0x
d0) != 0xd
0 && now() < end )
+ while( (inb(base + PORT_MAINSTATUS) & 0x
80) != 0x8
0 && now() < end )
Threads_Yield();
+ if( !(inb(base + PORT_MAINSTATUS) & 0x40) ) {
+ Log_Warning("FDD", "FDD_int_GetByte: DIO unset, is this ok?");
+ }
+
if( now() < end )
{
Uint8 tmp = inb(base + PORT_DATA);
UCC
git Repository :: git.ucc.asn.au