From: Nicholas Nethercote Date: Sun, 12 Jun 2005 00:06:24 +0000 (+0000) Subject: Move comment to the right place. X-Git-Tag: svn/VALGRIND_3_0_0~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f56f6ef444e4012e1b833b3dcf1fa40555854b6e;p=thirdparty%2Fvalgrind.git Move comment to the right place. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3893 --- diff --git a/coregrind/core.h b/coregrind/core.h index b1a90b05cd..4111d08f5b 100644 --- a/coregrind/core.h +++ b/coregrind/core.h @@ -148,12 +148,6 @@ extern void VG_(do_atfork_child) (ThreadId tid); Exports of vg_syscall.S ------------------------------------------------------------------ */ -// We use a full prototype rather than "..." here to ensure that all -// arguments get converted to a UWord appropriately. Not doing so can -// cause problems when passing 32-bit integers on 64-bit platforms, because -// the top 32-bits might not be zeroed appropriately, eg. as would happen -// with the 6th arg on AMD64 which is passed on the stack. - extern void VG_(sigreturn)(void); /* --------------------------------------------------------------------- diff --git a/coregrind/pub_core_libcbase.h b/coregrind/pub_core_libcbase.h index cdc4838ddc..b7289dee19 100644 --- a/coregrind/pub_core_libcbase.h +++ b/coregrind/pub_core_libcbase.h @@ -46,6 +46,12 @@ /* Do a syscall on this platform, with 6 args, and return the result in canonical format in a SysRes value. */ +// We use a full prototype for VG_(do_syscall) rather than "..." to ensure +// that all arguments get converted to a UWord appropriately. Not doing so +// can cause problems when passing 32-bit integers on 64-bit platforms, +// because the top 32-bits might not be zeroed appropriately, eg. as would +// happen with the 6th arg on AMD64 which is passed on the stack. + extern SysRes VG_(do_syscall) ( UWord sysno, UWord, UWord, UWord, UWord, UWord, UWord );