From owner-freebsd-hackers Thu Sep 20 2: 0:58 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 228DD37B406; Thu, 20 Sep 2001 02:00:52 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f8K90pM02065; Thu, 20 Sep 2001 02:00:51 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id B7D3F39F5; Thu, 20 Sep 2001 02:00:51 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Andrew R. Reiter" Cc: Julian Elischer , John Baldwin , hackers@FreeBSD.ORG Subject: Re: JKH Project: x86: pcb_ext In-Reply-To: Date: Thu, 20 Sep 2001 02:00:51 -0700 From: Peter Wemm Message-Id: <20010920090051.B7D3F39F5@overcee.netplex.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "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