Correct an error in gxemul_disk_write(). It was issuing the command to
read from rather than write to the emulated disk. Reviewed by: jmallett
This commit is contained in:
parent
b825120ab7
commit
4cc8c59523
@ -286,7 +286,7 @@ gxemul_disk_write(unsigned diskid, const void *buf, off_t off)
|
||||
dst = GXEMUL_DISK_DEV_FUNCTION(GXEMUL_DISK_DEV_BLOCK);
|
||||
memcpy((void *)(uintptr_t)dst, buf, GXEMUL_DISK_DEV_BLOCKSIZE);
|
||||
|
||||
GXEMUL_DISK_DEV_WRITE(GXEMUL_DISK_DEV_START, GXEMUL_DISK_DEV_START_READ);
|
||||
GXEMUL_DISK_DEV_WRITE(GXEMUL_DISK_DEV_START, GXEMUL_DISK_DEV_START_WRITE);
|
||||
switch (GXEMUL_DISK_DEV_READ(GXEMUL_DISK_DEV_STATUS)) {
|
||||
case GXEMUL_DISK_DEV_STATUS_FAILURE:
|
||||
return (EIO);
|
||||
|
Loading…
Reference in New Issue
Block a user