/[gxemul]/trunk/src/promemul/arcbios.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/promemul/arcbios.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
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   */   */
# Line 1592  int arcbios_emul(struct cpu *cpu) Line 1592  int arcbios_emul(struct cpu *cpu)
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;
# Line 1664  int arcbios_emul(struct cpu *cpu) Line 1664  int arcbios_emul(struct cpu *cpu)
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;

Legend:
Removed from v.14  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26