Tom Hughes d6a91b8ec3 Move the replacement code for the amd64 vsyscalls into the trampoline page
so that it is copied into the client space. This avoid warnings from memcheck
because it doesn't think that code inside valgrind is valid.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3591
2005-05-02 10:28:42 +00:00

11 lines
398 B
C

#include "core.h"
void VGP_(setup_redirects)(void)
{
/* Redirect vsyscalls to local versions */
VG_(add_redirect_addr_to_addr)(0xFFFFFFFFFF600000ULL,
VG_(client_trampoline_code)+VG_(tramp_gettimeofday_offset));
VG_(add_redirect_addr_to_addr)(0xFFFFFFFFFF600400ULL,
VG_(client_trampoline_code)+VG_(tramp_time_offset));
}