patch-2.4.25 linux-2.4.25/include/asm-i386/desc.h

Next file: linux-2.4.25/include/asm-i386/edd.h
Previous file: linux-2.4.25/include/asm-cris/sync_serial.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/include/asm-i386/desc.h linux-2.4.25/include/asm-i386/desc.h
@@ -79,13 +79,13 @@
 /*
  * load one particular LDT into the current CPU
  */
-static inline void load_LDT (struct mm_struct *mm)
+static inline void load_LDT (mm_context_t *pc)
 {
 	int cpu = smp_processor_id();
-	void *segments = mm->context.segments;
-	int count = LDT_ENTRIES;
+	void *segments = pc->ldt;
+	int count = pc->size;
 
-	if (!segments) {
+	if (!count) {
 		segments = &default_ldt[0];
 		count = 5;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)