SATA sector read progress
This commit is contained in:
parent
fba1361c48
commit
2826f140c9
3 changed files with 6 additions and 5 deletions
6
bochsrc
6
bochsrc
|
|
@ -1,12 +1,12 @@
|
|||
cpu: count=1, reset_on_triple_fault=1
|
||||
cpuid: x86_64=1, mmx=1, sep=1, simd=sse4_2, apic=xapic, aes=1, movbe=1, xsave=1
|
||||
cpuid: family=6, model=0x1a, stepping=5
|
||||
#cpuid: x86_64=1, mmx=1, sep=1, simd=sse4_2, apic=xapic, aes=1, movbe=1, xsave=1
|
||||
#cpuid: family=6, model=0x1a, stepping=5
|
||||
|
||||
memory: guest=512, host=256
|
||||
|
||||
romimage: file=$BXSHARE/BIOS-bochs-latest, options=fastboot
|
||||
|
||||
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
|
||||
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest.bin
|
||||
|
||||
mouse: enabled=0
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
kernel=sys/core
|
||||
screen=800x600
|
||||
|
|
|
|||
|
|
@ -315,9 +315,9 @@ bool sata_submit_read(int port_num, uint64_t lba48, unsigned nsectors)
|
|||
volatile FIS_REG_H2D *fis = (volatile void *)&port->cmd_table_ptr[slot];
|
||||
memset((void *)fis, 0, sizeof *fis);
|
||||
fis->fis_type = FIS_TYPE_REG_H2D;
|
||||
fis->command = ATA_CMD_IDENTIFY;
|
||||
fis->command = ATA_CMD_READ_SECTOR_EXT;
|
||||
fis->device = (1 << 6);
|
||||
#if 0
|
||||
#if 1
|
||||
fis->lba0 = lba48 >> 0;
|
||||
fis->lba1 = lba48 >> 8;
|
||||
fis->lba2 = lba48 >> 16;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue