x86/kernel/head_32.S
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Fri Dec 5 09:09:20 EST 2014
On Fri, 05 Dec 2014 17:50:40 +0800, åå»ºå¸ said:
>
> I am confused by `leal -__PAGE_OFFSET(%ecx),%esp`.
> `pa(stack_start)` have convert `stack_start` to physicall address.
> why we need `-__PAGE_OFFSET(%ecx)` instead of `%ecx`?
>From the commit message:
"This retains start_stack as a virtual address, even though a physical
address would be more convenient for 32 bits;"
In other words, pa() converted it to a physical adddress - and now we're
converting it back to a virtual address....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141205/6108e989/attachment.bin
More information about the Kernelnewbies
mailing list