search for: read_op

Displaying 5 results from an estimated 5 matches for "read_op".

2013 Sep 06
1
[PATCH 2/2 v2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
...d *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa; void *buf; void *data = NULL; - uint32_t maxcnt; + uint32_t idx, maxcnt; uint32_t size = 65536; + static struct disk_ops read_ops[2] = { + { CHS_READ_CODE, &chs_disk_op }, + { EBIOS_READ_CODE, &ebios_disk_op } + }; maxcnt = (size - diskinfo->bps) / diskinfo->bps; if (!count || count > maxcnt || lba + count > diskinfo->lbacnt) @@ -185,48 +264,12 @@ void *disk_read_sectors(const struct dis...
2009 Mar 30
2
[PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
...are NOT supported */ + cmpw $0xaa55, %bx /* bytes returned swapped if successful */ + jne use_chs_addressing + shrw %cx /* Shift right once into carry flag. Bit 0: extended (LBA) disk functions available */ + jnc use_chs_addressing + jmp use_lba_addressing + +use_chs_addressing: + movb $0x02, read_op /* set the BIOS function to use when reading CHS sectors */ + movb $'C', (msg_address_mode) /* over-write 'L' with 'C' in boot message */ + +use_lba_addressing: + /* convert drive-number to two hex characters and insert them into the boot message */ + movw (drive_number), %d...
2009 Mar 30
0
[PATCH 1/1] Add Diagnostic MBR for trouble-shooting
...are NOT supported */ + cmpw $0xaa55, %bx /* bytes returned swapped if successful */ + jne use_chs_addressing + shrw %cx /* Shift right once into carry flag. Bit 0: extended (LBA) disk functions available */ + jnc use_chs_addressing + jmp use_lba_addressing + +use_chs_addressing: + movb $0x02, read_op /* set the BIOS function to use when reading CHS sectors */ + movb $53, (msg_address_mode) /* over-write 'L' with 'C' in boot message */ +use_lba_addressing: + + /* convert drive-number to two hex characters and insert them into the boot message */ + movw (drive_number), %dx + pushw...
2009 Mar 30
2
[PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
...are NOT supported */ + cmpb $0x55, %bl /* bytes returned swapped if successful */ + jne use_chs_addressing + shrw %cx /* Shift right once into carry flag. Bit 0: extended (LBA) disk functions available */ + jnc use_chs_addressing + jmp use_lba_addressing + +use_chs_addressing: + movb $0x02, read_op /* set the BIOS function to use when reading CHS sectors */ + movb $'C', (msg_address_mode) /* over-write 'L' with 'C' in boot message */ + +use_lba_addressing: + /* convert drive-number to two hex characters and insert them into the boot message */ + movw (drive_number), %d...
2006 Nov 17
1
gjournal on 6.x wont build
Hi all, I was intending on trying out gjournal on a new disk i've added in my desktop. I had a look to see what the most recent patch provided by Pawel and found http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch I created the directories as per Pawel's original post (http://lists.freebsd.org/pipermail/freebsd-fs/2006-June/001962.html) and the patch succeeded with no failed