diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-25 16:11:33 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-25 19:55:03 -0700 |
commit | 6b6815c6d5d1dc209701d1661a7a0e09a295db2f (patch) | |
tree | 9e1c07acbc4926279fcef068efb60141c6eed2af /arch/x86/boot/boot.h | |
parent | c9927c2bf4f45bb85e8b502ab3fb79ad6483c244 (diff) | |
download | talos-obmc-linux-6b6815c6d5d1dc209701d1661a7a0e09a295db2f.tar.gz talos-obmc-linux-6b6815c6d5d1dc209701d1661a7a0e09a295db2f.zip |
x86 setup: handle boot loaders which set up the stack incorrectly
Apparently some specific versions of LILO enter the kernel with a
stack pointer that doesn't match the rest of the segments. Make our
best attempt at untangling the resulting mess.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/boot/boot.h')
-rw-r--r-- | arch/x86/boot/boot.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index 5f9a2e72a731..887874f4b49f 100644 --- a/arch/x86/boot/boot.h +++ b/arch/x86/boot/boot.h @@ -17,6 +17,8 @@ #ifndef BOOT_BOOT_H #define BOOT_BOOT_H +#define STACK_SIZE 512 /* Minimum number of bytes for stack */ + #ifndef __ASSEMBLY__ #include <stdarg.h> @@ -198,8 +200,6 @@ static inline int isdigit(int ch) } /* Heap -- available for dynamic lists. */ -#define STACK_SIZE 512 /* Minimum number of bytes for stack */ - extern char _end[]; extern char *HEAP; extern char *heap_end; |