]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make do_syscall_WRK take UWord arguments and return UWord results to
authorTom Hughes <tom@compton.nu>
Sat, 18 Jun 2005 11:58:18 +0000 (11:58 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 18 Jun 2005 11:58:18 +0000 (11:58 +0000)
avoid inappropriate truncations on 64 bit systems. Also make it static
as it is not used anywhere else.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3934

coregrind/m_syscall.c

index 3a24fb73c61c57d77616fc1cb2ed544e577bc19b..06b6cf056069e7588100f47278c3156da5688cc0 100644 (file)
@@ -83,10 +83,10 @@ SysRes VG_(mk_SysRes_Success) ( UWord val ) {
    A function for doing syscalls.
    ------------------------------------------------------------------ */
 
-extern UInt do_syscall_WRK (
-          UInt syscall_no, 
-          UInt a1, UInt a2, UInt a3,
-          UInt a4, UInt a5, UInt a6
+static UWord do_syscall_WRK (
+          UWord syscall_no, 
+          UWord a1, UWord a2, UWord a3,
+          UWord a4, UWord a5, UWord a6
        );
 #if defined(VGP_x86_linux)
 /* Incoming args (syscall number + up to 6 args) come on the stack.