From 68221584ccd105c0263f3d8dd471d1f9d8fd0737 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 23 Aug 2001 19:58:31 +0000 Subject: [PATCH] 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. --- src/cpu/i386/entry16.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cpu/i386/entry16.inc b/src/cpu/i386/entry16.inc index 52b693e8f8..bc5cd9b661 100644 --- a/src/cpu/i386/entry16.inc +++ b/src/cpu/i386/entry16.inc @@ -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 +