"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 - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message