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:
imp 2003-08-22 01:59:28 +00:00
parent 2d770de2c0
commit 75d0d02719
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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