Search
lxdream.org :: lxdream/src/bios.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/bios.c
changeset 1103:de9ad2c0cf56
prev1102:957b76b312cc
next1107:7b279d10f46f
author nkeynes
date Sun Feb 21 11:19:59 2010 +1000 (12 years ago)
permissions -rw-r--r--
last change Update sh4r.pc before doing the syscall - mainly so that debugging etc
statements come out with a useful PC value rather than the syscall id
file annotate diff log raw
1.1 --- a/src/bios.c Sun Feb 21 11:11:30 2010 +1000
1.2 +++ b/src/bios.c Sun Feb 21 11:19:59 2010 +1000
1.3 @@ -27,6 +27,8 @@
1.4 #include "drivers/cdrom/isoread.h"
1.5 #include "gdrom/gdrom.h"
1.6
1.7 +gboolean bios_boot_gdrom_disc( void );
1.8 +
1.9 /* Definitions from KOS */
1.10 #define COMMAND_QUEUE_LENGTH 16
1.11
1.12 @@ -368,9 +370,7 @@
1.13 {
1.14 /* Initialize hardware */
1.15 /* Boot disc if present */
1.16 - if( bios_boot_gdrom_disc() ) {
1.17 - sh4r.pr = sh4r.pc; /* Set the syscall return address to the bootstrap entry */
1.18 - } else {
1.19 + if( !bios_boot_gdrom_disc() ) {
1.20 dreamcast_stop();
1.21 }
1.22 }
.