diff options
-rw-r--r-- | sys/boot/i386/boot2/boot1.S | 4 | ||||
-rw-r--r-- | sys/boot/i386/boot2/boot1.s | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/boot/i386/boot2/boot1.S b/sys/boot/i386/boot2/boot1.S index e6cdab0..f7d9df6 100644 --- a/sys/boot/i386/boot2/boot1.S +++ b/sys/boot/i386/boot2/boot1.S @@ -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 diff --git a/sys/boot/i386/boot2/boot1.s b/sys/boot/i386/boot2/boot1.s index e6cdab0..f7d9df6 100644 --- a/sys/boot/i386/boot2/boot1.s +++ b/sys/boot/i386/boot2/boot1.s @@ -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 |