Re: [Etherboot-developers] Adding real-mode stack for prot_to_real
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ke...@us...> - 2002-09-21 05:38:52
|
>We also need to load the GDT, and segment registers with the values >mknbi assumes are in use. A protected mode entry point can only >sanely assume a flat 32bit address space with a base address of 0. >I have played with the former and checked it into the developer etherboot >CVS tree. But I had not identified the remaing stack issue. I have some time this weekend and will get a round tuit. It's fairly easy to fix, just do what menustart.S does, that is, switch GDTs, get a private stack, in this case at the top of the 6kB allocated to first32.c, then copy the 3 arguments over and jump to the entry point of first32.c. |