Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 18:02:16 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28114 for review
Message-ID:  <200304050202.h3522GZO091573@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28114

Change 28114 by peter@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304050202.h3522GZO091573>