Port-i386 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: i386 start routine
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
> The CR0 change cause the memory pointed by the stack pointer to be
> unmapped. As a result, the pushl $begin does not push begin adddress on
> the stack, and ret launches us in the twilight zone.
>
> Why enabling protected mode and paging makes a mapping disapear?
Further reading teaches me that setting CR0_PG enable the mapping given
in CR3, which was built earlier in the file. I understand the temporary
stack is not mapped. I wonder how this is supposed to work.
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index