Many newer CF do not handle having the entire track read from them at
boot time. Instead, read it a sector at a time. While this sounds like a significant slowdown, I've not been able to measure any signficant difference. Submitted by: luigi Reviewed by: jhb, sam (both a while ago) MFC After: 3 days
This commit is contained in:
parent
2d770de2c0
commit
75d0d02719
@ -299,7 +299,11 @@ read: push %dx // Save
|
||||
mov 0x2(%bp),%ah // Blocks to read
|
||||
cmpb %ah,%al // To read
|
||||
jb read.2 // this
|
||||
#ifdef TRACK_AT_A_TIME
|
||||
movb %ah,%al // track
|
||||
#else
|
||||
movb $1,%al // one sector
|
||||
#endif
|
||||
read.2: mov $0x5,%di // Try count
|
||||
read.3: les 0x4(%bp),%bx // Transfer buffer
|
||||
push %ax // Save
|
||||
|
@ -299,7 +299,11 @@ read: push %dx // Save
|
||||
mov 0x2(%bp),%ah // Blocks to read
|
||||
cmpb %ah,%al // To read
|
||||
jb read.2 // this
|
||||
#ifdef TRACK_AT_A_TIME
|
||||
movb %ah,%al // track
|
||||
#else
|
||||
movb $1,%al // one sector
|
||||
#endif
|
||||
read.2: mov $0x5,%di // Try count
|
||||
read.3: les 0x4(%bp),%bx // Transfer buffer
|
||||
push %ax // Save
|
||||
|
Loading…
Reference in New Issue
Block a user