Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2001 02:00:51 -0700
From:      Peter Wemm <peter@wemm.org>
To:        "Andrew R. Reiter" <arr@watson.org>
Cc:        Julian Elischer <julian@elischer.org>, John Baldwin <jhb@FreeBSD.ORG>, hackers@FreeBSD.ORG
Subject:   Re: JKH Project: x86: pcb_ext 
Message-ID:  <20010920090051.B7D3F39F5@overcee.netplex.com.au>
In-Reply-To: <Pine.NEB.3.96L.1010920031619.6373A-100000@fledge.watson.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrew R. Reiter" wrote:
> On Wed, 19 Sep 2001, Peter Wemm wrote:
> :
> :One comment:
> :
> :-	cmpl	$0, PCB_USERLDT(%edx)	/* if there is one */
> :+	movl	TD_PROC(%ecx), %eax	/* load struct proc from CURTHREAD */
> :+	leal	P_MD(%eax), %eax	/* get mdproc from proc */
> :+	cmpl	$0, MD_LDT(%eax)	/* if there is one */
> :
> :
> :This can be written as:
> :	movl	TD_PROC(%ecx), %eax
> :	cmpl	$0, P_MD+MD_LDT(%eax)
> :
> :This is evaluated at assemble time.
> 
> Yea, Kinda dumb on my part :-/

No, I just happened to miss the same shortcut recently, so I noticed
it. :-)

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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