Lines Matching defs:read
83 * Trampoline used by boot2 to call read to read data from the disk via
86 * %cx:%ax - long - LBA to read in
87 * %es:(%bx) - caddr_t - buffer to read data into
88 * %dl - byte - drive to read from
89 * %dh - byte - num sectors to read
95 * Setup an EDD disk packet and pass it to read
108 callw read # Read from disk
178 * we read it in, we conveniently use 0x8c00 as our transfer buffer. Thus,
224 * Trampoline used to call read from within boot1.
258 * read function. Since we assume putstr succeeds, we (ab)use the
274 read: testb $FL_PACKET,%cs:MEM_REL+flags-start # LBA support enabled?
275 jz read.1 # No, use CHS
277 jb read.1 # No, use CHS
283 jc read.1 # If error, use CHS
285 jne read.1 # No, so use CHS
287 jz read.1 # No, so use CHS
290 int $0x13 # read
292 read.1: push %dx # Save
323 mov 0x2(%bp),%ah # Blocks to read
324 cmpb %ah,%al # To read
325 jb read.2 # this
331 read.2: mov $0x5,%di # Try count
332 read.3: les 0x4(%bp),%bx # Transfer buffer
337 jnc read.4 # If success
339 jz read.6 # No
343 jmp read.3 # Continue
344 read.4: movzbw %bl,%ax # Sectors read
346 jnc read.5 # LBA,
348 read.5: shlb %bl # buffer
351 ja read.1 # If not done
352 read.6: retw # To caller