Search
lxdream.org :: lxdream/src/syscall.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/syscall.c
changeset 736:a02d1475ccfd
prev669:ab344e42bca9
next1065:bc1cc0c54917
author nkeynes
date Mon Jul 14 07:44:42 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Re-indent everything consistently
Fix include guards for consistency as well
file annotate diff log raw
1.1 --- a/src/syscall.c Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/syscall.c Mon Jul 14 07:44:42 2008 +0000
1.3 @@ -31,13 +31,13 @@
1.4 {
1.5 hook_id &= 0xFF;
1.6 if( syscall_hooks[hook_id].hook != NULL )
1.7 - WARN( "Overwriting existing hook %02X", hook_id );
1.8 + WARN( "Overwriting existing hook %02X", hook_id );
1.9 syscall_hooks[hook_id].hook = hook;
1.10 syscall_hooks[hook_id].vector = 0;
1.11 }
1.12
1.13 void syscall_add_hook_vector( uint32_t hook_id, uint32_t vector_addr,
1.14 - syscall_hook_func_t hook )
1.15 + syscall_hook_func_t hook )
1.16 {
1.17 hook_id &= 0xFF;
1.18 syscall_add_hook( hook_id, hook );
1.19 @@ -50,9 +50,9 @@
1.20 hook_id &= 0xFF;
1.21 syscall_hook_func_t hook = syscall_hooks[hook_id].hook;
1.22 if( hook == NULL ) {
1.23 - WARN( "Invoked non-existent hook %02X", hook_id );
1.24 + WARN( "Invoked non-existent hook %02X", hook_id );
1.25 } else {
1.26 - hook(hook_id);
1.27 + hook(hook_id);
1.28 }
1.29 }
1.30
1.31 @@ -60,9 +60,9 @@
1.32 {
1.33 int i;
1.34 for( i=0; i<256; i++ ) {
1.35 - if( syscall_hooks[i].hook != NULL &&
1.36 - syscall_hooks[i].vector != 0 ) {
1.37 - mem_write_long( syscall_hooks[i].vector, 0xFFFFFF00 + i );
1.38 - }
1.39 + if( syscall_hooks[i].hook != NULL &&
1.40 + syscall_hooks[i].vector != 0 ) {
1.41 + mem_write_long( syscall_hooks[i].vector, 0xFFFFFF00 + i );
1.42 + }
1.43 }
1.44 }
.