PERFORCE change 28114 for review

Peter Wemm peter at FreeBSD.org
Fri Apr 4 18:02:18 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=28114

Change 28114 by peter at peter_daintree on 2003/04/04 18:01:34

	avoid ldt stuff

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/swtch.s#8 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/swtch.s#8 (text+ko) ====

@@ -212,30 +212,6 @@
 	movl	%edx, PCPU(CURPCB)
 	movl	%ecx, PCPU(CURTHREAD)		/* into next thread */
 
-	/*
-	 * Determine the LDT to use and load it if is the default one and
-	 * that is not the current one.
-	 */
-	movl	TD_PROC(%ecx),%eax
-	cmpl    $0,P_MD+MD_LDT(%eax)
-	jnz	1f
-	movl	_default_ldt,%eax
-	cmpl	PCPU(CURRENTLDT),%eax
-	je	2f
-	lldt	_default_ldt
-	movl	%eax,PCPU(CURRENTLDT)
-	jmp	2f
-1:
-	/* Load the LDT when it is not the default one. */
-	pushl	%edx				/* Preserve pointer to pcb. */
-	addl	$P_MD,%eax			/* Pointer to mdproc is arg. */
-	pushl	%eax
-	call	set_user_ldt
-	addl	$4,%esp
-	popl	%edx
-2:
-
-	/* This must be done after loading the user LDT. */
 	.globl	cpu_switch_load_gs
 cpu_switch_load_gs:
 	movl	PCB_GS(%edx),%gs


More information about the p4-projects mailing list