Messages in this thread | | | Date | Mon, 02 Jul 2007 07:34:20 -0400 | From | Brian Gerst <> | Subject | Re: [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/
| |