Re: [Etherboot-developers] Adding real-mode stack for prot_to_real
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ke...@us...> - 2002-09-21 06:09:04
|
>I just posted a patch that does this. I used a 4K stack and I copy >more than 3 arguments since it's easy to do so. I also made an >allowance so that we could return to etherboot if necessary. Sorry, your method is not good enough. You should not allocate a static area for the stack, it wastes space and if any more stuff is added to first32.c it will add pressure on space. Rather just point %esp to the top of the 6kB area allocated to first32 (RELOC+6144). That way, the stack only grows as much as needed. BTW, it's a 1kB stack you were allocating. If you had allocated 4kB, you would have run out of space already since the text size of first32 is already > 4kB. |