One-line change to set the ESP to a sane value before starting crt0.S.

Some of the .inc files require a sane stack value. This is not a full stack init
as found in crt0.S but just a quick set to make sure call/return works.
This commit is contained in:
Ronald G. Minnich 2001-08-23 19:58:31 +00:00
commit 68221584cc

View file

@ -135,3 +135,14 @@ _realstart:
movw %ax, %fs
movw %ax, %gs
/* This is a redundant stack setup.
* It redoes the more complete stack setup
* in crt0.S. We do this here because on entry to crt0.S
* some chipsets have memory set up and others don't. We have found
* that some code in CRT0_PARAMETERS assume the stack is working
* enough for call/return. So we have to have working stack or
* things will crash. This fix as of 8/23/01 RGM
*/
/* set new stack */
movl $_estack, %esp