Improved structure of LDT-related code:
- one declarations from core.h removed, one moved to within m_syscalls.
- all the x86 LDT stuff made local to m_syscalls.  x86-linux/ldt.c removed
  as a result.  x86/state.c slimmed down, too.  x86/x86_private.h removed
  too.
- all the AMD64 LDT stuff was deleted, since it was all commented out.  It
  can be added back in later in the appropriate places if necessary.
  Thus amd64-linux/ldt.c and amd64/amd64_private.h were removed.
- other minor naming changes

I hope I didn't break AMD64 compilation.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3726 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/pub_core_syscalls.h b/coregrind/pub_core_syscalls.h
index 1830d8b..1df0faa 100644
--- a/coregrind/pub_core_syscalls.h
+++ b/coregrind/pub_core_syscalls.h
@@ -47,10 +47,13 @@
 // interrupted with a signal.  Returns True if the syscall completed
 // (either interrupted or finished normally), or False if it was
 // restarted (or the signal didn't actually interrupt a syscall).
-extern void VGA_(interrupted_syscall)(ThreadId tid,
+extern void VGP_(interrupted_syscall)(ThreadId tid,
                                       struct vki_ucontext *uc,
                                       Bool restart);
 
+// Release resources held by this thread
+extern void VGP_(cleanup_thread) ( ThreadArchState* );
+
 extern Bool VG_(is_kerror) ( Word res );
 
 /* Internal atfork handlers */