Arch-abstraction:
- move some LDT constants into the x86-specific code.
- abstract out uses of LDT and TLS in vg_scheduler into the x86-specific code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2682 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/core.h b/coregrind/core.h
index bce17e3..cee987d 100644
--- a/coregrind/core.h
+++ b/coregrind/core.h
@@ -605,11 +605,9 @@
extern Bool VG_(sk_malloc_called_by_scheduler);
-
-/* Maximum number of LDT entries supported (by the x86). */
-#define VG_M_LDT_ENTRIES 8192
-/* The size of each LDT entry == sizeof(VgLdtEntry) */
-#define VG_LDT_ENTRY_SIZE 8
+/* ---------------------------------------------------------------------
+ Exports of vg_ldt.c
+ ------------------------------------------------------------------ */
/* Alloc & copy, and dealloc. */
extern VgLdtEntry* VG_(allocate_LDT_for_thread) ( VgLdtEntry* parent_ldt );
@@ -1499,6 +1497,11 @@
extern void VGA_(load_state) ( arch_thread_t*, ThreadId tid );
extern void VGA_(save_state) ( arch_thread_t*, ThreadId tid );
+extern void VGA_(clear_thread) ( arch_thread_t * );
+extern void VGA_(init_thread) ( arch_thread_t * );
+extern void VGA_(cleanup_thread) ( arch_thread_t* );
+extern void VGA_(setup_child) ( arch_thread_t*, arch_thread_t* );
+
extern Bool VGA_(setup_pointercheck) ( void );
extern Int VGA_(ptrace_setregs_from_BB) ( Int pid );