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:
Warner Losh 2003-08-22 01:59:28 +00:00
parent 3c33210ce8
commit 8c0a2b3383
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119253
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