Re: i386 start routine

[email protected] (Emmanuel Dreyfus)
Newsgroups gmane.os.netbsd.ports.i386
Message-ID <1oe8k2m.1ezxpav17uvakpM%[email protected]>
Emmanuel Dreyfus <[email protected]> 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
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.