Re: x86/kernel/head_32.S

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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....

Attachment: pgpLhmnILByAS.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux