25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: arcbios.c,v 1.1 2005/08/29 14:46:34 debug Exp $ |
* $Id: arcbios.c,v 1.2 2005/11/16 21:15:20 debug Exp $ |
29 |
* |
* |
30 |
* ARCBIOS emulation. |
* ARCBIOS emulation. |
31 |
*/ |
*/ |
1592 |
nread? ARCBIOS_ESUCCESS: ARCBIOS_EAGAIN; |
nread? ARCBIOS_ESUCCESS: ARCBIOS_EAGAIN; |
1593 |
} else { |
} else { |
1594 |
int handle = cpu->cd.mips.gpr[MIPS_GPR_A0]; |
int handle = cpu->cd.mips.gpr[MIPS_GPR_A0]; |
1595 |
int disk_type; |
int disk_type = 0; |
1596 |
int disk_id = arcbios_handle_to_disk_id_and_type( |
int disk_id = arcbios_handle_to_disk_id_and_type( |
1597 |
machine, handle, &disk_type); |
machine, handle, &disk_type); |
1598 |
uint64_t partition_offset = 0; |
uint64_t partition_offset = 0; |
1664 |
* TODO: this is just a test |
* TODO: this is just a test |
1665 |
*/ |
*/ |
1666 |
int handle = cpu->cd.mips.gpr[MIPS_GPR_A0]; |
int handle = cpu->cd.mips.gpr[MIPS_GPR_A0]; |
1667 |
int disk_type; |
int disk_type = 0; |
1668 |
int disk_id = arcbios_handle_to_disk_id_and_type( |
int disk_id = arcbios_handle_to_disk_id_and_type( |
1669 |
machine, handle, &disk_type); |
machine, handle, &disk_type); |
1670 |
uint64_t partition_offset = 0; |
uint64_t partition_offset = 0; |