Search
lxdream.org :: lxdream/src/syscall.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/syscall.c
changeset 669:ab344e42bca9
prev586:2a3ba82cf243
next736:a02d1475ccfd
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- a/src/syscall.c Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/syscall.c Mon May 12 10:00:13 2008 +0000
1.3 @@ -16,7 +16,7 @@
1.4 * GNU General Public License for more details.
1.5 */
1.6
1.7 -#include "dream.h"
1.8 +#include "lxdream.h"
1.9 #include "mem.h"
1.10 #include "syscall.h"
1.11 #include "sh4/sh4.h"
1.12 @@ -42,7 +42,7 @@
1.13 hook_id &= 0xFF;
1.14 syscall_add_hook( hook_id, hook );
1.15 syscall_hooks[hook_id].vector = vector_addr;
1.16 - sh4_write_long( vector_addr, 0xFFFFFF00 + hook_id );
1.17 + mem_write_long( vector_addr, 0xFFFFFF00 + hook_id );
1.18 }
1.19
1.20 void syscall_invoke( uint32_t hook_id )
1.21 @@ -62,7 +62,7 @@
1.22 for( i=0; i<256; i++ ) {
1.23 if( syscall_hooks[i].hook != NULL &&
1.24 syscall_hooks[i].vector != 0 ) {
1.25 - sh4_write_long( syscall_hooks[i].vector, 0xFFFFFF00 + i );
1.26 + mem_write_long( syscall_hooks[i].vector, 0xFFFFFF00 + i );
1.27 }
1.28 }
1.29 }
.