lkml.org 
[lkml]   [2007]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [i386] Questions regarding provisional page tables initialization
Ahmed S. Darwish wrote:
> now back to head.S code:
> leal 0x007(%edi),%ecx /* Create PDE entry */
>
> Isn't the above line the same condition (bytes, not bits displacement) ?.
> Thanks for your patience !.

The leal instruction (Load Effective Address) is often used as a way to
add a constant to one register and store the result in another register
in a single instruction. The values don't even have to be addresses at
all, since no memory is actually referenced. Otherwise this would be
written as:

movl %edi,%ecx
addl $0x007, %ecx

--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-02 14:23    [W:0.043 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site