--- linux-2.6.10/arch/i386/kernel/process.c- 2005-01-05 15:15:25.469541136 -0800
+++ linux-2.6.10/arch/i386/kernel/process.c 2005-01-05 15:15:26.939317696 -0800
@@ -329,6 +329,7 @@
{
struct task_struct *tsk = current;
+ __asm__("movl %0,%%gs": :"r" (0));
memset(tsk->thread.debugreg, 0, sizeof(unsigned long)*8);
memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array));
/*