Search
lxdream.org :: lxdream/src/bios.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/bios.c
changeset 422:61a0598e07ff
prev102:844a3f2a76ff
next430:467519b050f4
author nkeynes
date Sat Oct 06 09:03:24 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/bios.c Mon Mar 13 12:38:39 2006 +0000
1.2 +++ b/src/bios.c Sat Oct 06 09:03:24 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: bios.c,v 1.2 2006-03-13 12:38:34 nkeynes Exp $
1.6 + * $Id: bios.c,v 1.3 2007-10-06 08:59:42 nkeynes Exp $
1.7 *
1.8 * "Fake" BIOS functions, for operation without the actual BIOS.
1.9 *
1.10 @@ -19,6 +19,7 @@
1.11 #include "dream.h"
1.12 #include "mem.h"
1.13 #include "syscall.h"
1.14 +#include "dreamcast.h"
1.15 #include "sh4/sh4core.h"
1.16
1.17 #define COMMAND_QUEUE_LENGTH 16
1.18 @@ -150,7 +151,7 @@
1.19 sh4r.r[0] = cmd->status;
1.20 if( cmd->status == GD_CMD_STATUS_ERROR &&
1.21 sh4r.r[5] != 0 ) {
1.22 - mem_copy_to_sh4( sh4r.r[5], &cmd->result, sizeof(cmd->result) );
1.23 + mem_copy_to_sh4( sh4r.r[5], (char *)&cmd->result, sizeof(cmd->result) );
1.24 }
1.25 }
1.26 break;
1.27 @@ -162,7 +163,7 @@
1.28 break;
1.29 case 4: /* Drive status */
1.30 if( sh4r.r[4] != 0 ) {
1.31 - mem_copy_to_sh4( sh4r.r[4], &bios_gdrom_status,
1.32 + mem_copy_to_sh4( sh4r.r[4], (char *)&bios_gdrom_status,
1.33 sizeof(bios_gdrom_status) );
1.34 }
1.35 sh4r.r[0] = 0;
.