patch-2.4.21 linux-2.4.21/arch/x86_64/kernel/ldt.c
Next file: linux-2.4.21/arch/x86_64/kernel/msr.c
Previous file: linux-2.4.21/arch/x86_64/kernel/ioport.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
2003-06-13 07:51:32.000000000 -0700
- Orig file:
linux-2.4.20/arch/x86_64/kernel/ldt.c
- Orig date:
2002-11-28 15:53:12.000000000 -0800
diff -urN linux-2.4.20/arch/x86_64/kernel/ldt.c linux-2.4.21/arch/x86_64/kernel/ldt.c
@@ -85,11 +85,6 @@
goto out;
}
- me->thread.fsindex = 0;
- me->thread.gsindex = 0;
- me->thread.gs = 0;
- me->thread.fs = 0;
-
/*
* the GDT index of the LDT is allocated dynamically, and is
* limited by MAX_LDT_DESCRIPTORS.
@@ -142,10 +137,8 @@
/* Install the new entry ... */
install:
- write_lock(&mm->context.ldtlock);
*lp = entry_1;
*(lp+1) = entry_2;
- write_unlock(&mm->context.ldtlock);
error = 0;
out_unlock:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)