Date: Thu, 15 Sep 2005 13:07:56 +0200 From: Simon Barner <barner@FreeBSD.org> To: Simon Barner <barner@FreeBSD.org> Cc: freebsd-hackers@FreeBSD.org Subject: Re: {get,set}_fsbase, {get,set}_gsbase and Valgrind Message-ID: <20050915110756.GD1098@zi025.glhnet.mhn.de> In-Reply-To: <20050915104839.GC1098@zi025.glhnet.mhn.de> References: <20050915104839.GC1098@zi025.glhnet.mhn.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--IU5/I01NYhRvwH70 Content-Type: multipart/mixed; boundary="ZJcv+A0YCCLh2VIg" Content-Disposition: inline --ZJcv+A0YCCLh2VIg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here is the patch. --ZJcv+A0YCCLh2VIg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-coregrind_vg_syscalls.c" --- coregrind/vg_syscalls.c.orig Fri Jul 16 19:21:08 2004 +++ coregrind/vg_syscalls.c Wed Sep 14 22:13:44 2005 @@ -1369,6 +1369,38 @@ &tst->m_eflags, arg1, arg2); break; + case 7: + SYSCALL_TRACK( pre_mem_write, tid, + "sysarch.get_fsbase(args)", arg2, sizeof(UInt)); + tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, + tst->m_edx, + &tst->m_eflags, + arg1, arg2); + break; + case 8: + SYSCALL_TRACK( pre_mem_read, tid, + "sysarch.set_fsbase(args)", arg2, sizeof(UInt)); + tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, + tst->m_edx, + &tst->m_eflags, + arg1, arg2); + break; + case 9: + SYSCALL_TRACK( pre_mem_read, tid, + "sysarch.get_gsbase(args)", arg2, sizeof(UInt)); + tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, + tst->m_edx, + &tst->m_eflags, + arg1, arg2); + break; + case 10: + SYSCALL_TRACK( pre_mem_read, tid, + "sysarch.set_gsbase(args)", arg2, sizeof(UInt)); + tst->m_eax = VG_(do_syscall_err)(__NR_sysarch, + tst->m_edx, + &tst->m_eflags, + arg1, arg2); + break; default: VG_(core_panic)("Unhandled sysarch call"); } @@ -1392,6 +1424,14 @@ break; case 6: /* vm86 */ break; + case 7: /* get_fsbase */ + break; + case 8: /* set_fsbase */ + break; + case 9: /* get_gsbase */ + break; + case 10: /* set_gsbase */ + break; default: VG_(core_panic)("Unhandled sysarch call"); } --ZJcv+A0YCCLh2VIg-- --IU5/I01NYhRvwH70 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDKVYMCkn+/eutqCoRAmnAAJ93IVLdJZLsjgmBAe/DOCkJBEFU6gCgv6Fm Kn3CtbtoI82GcRMqcu3KYag= =icL5 -----END PGP SIGNATURE----- --IU5/I01NYhRvwH70--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050915110756.GD1098>