Quantcast

valgrind: r3823 - trunk/coregrind/m_syscalls

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

valgrind: r3823 - trunk/coregrind/m_syscalls

svn-2
Author: sewardj
Date: 2005-05-31 14:08:03 +0100 (Tue, 31 May 2005)
New Revision: 3823

Modified:
   trunk/coregrind/m_syscalls/syscalls-x86-linux.c
Log:
At clone(), always start the child off with a copy of the parent's GDT.



Modified: trunk/coregrind/m_syscalls/syscalls-x86-linux.c
===================================================================
--- trunk/coregrind/m_syscalls/syscalls-x86-linux.c 2005-05-31 10:12:06 UTC (rev 3822)
+++ trunk/coregrind/m_syscalls/syscalls-x86-linux.c 2005-05-31 13:08:03 UTC (rev 3823)
@@ -412,7 +412,7 @@
       clone flags of 0xF00, and it seems to rely on the assumption
       that the child inherits a copy of the parent's GDT. Hence that
       is passed as an arg to setup_child. */
-   setup_child( &ctst->arch, &ptst->arch, VG_(clo_support_elan3) );
+   setup_child( &ctst->arch, &ptst->arch, True /*VG_(clo_support_elan3)*/ );
 
    VGP_SET_SYSCALL_RESULT(ctst->arch, 0);
    if (esp != 0)
@@ -1035,15 +1035,13 @@
       - The Quadrics Elan3 driver specifies clone flags of 0xF00.
       Everything else is rejected.
    */
-   if (!VG_(clo_support_elan3)
-       && (cloneflags == 0x100011 || cloneflags == 0x1200011
-                                  || cloneflags == 0x7D0F00)) {
-      /* OK */
+   if (
+          (cloneflags == 0x100011 || cloneflags == 0x1200011
+                                  || cloneflags == 0x7D0F00
+                                  || cloneflags == 0xF00
+                                  || cloneflags == 0xF21)) {
+     /* OK */
    }
-   else
-   if (VG_(clo_support_elan3) && cloneflags == 0xF00) {
-      /* OK */
-   }
    else {
       /* Nah.  We don't like it.  Go away. */
       goto reject;



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...