diff options
author | Jens Rottmann <JRottmann@lippert-at.de> | 2007-11-27 12:35:13 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-11-28 18:17:17 -0800 |
commit | 16252da654800461e0e1c32697cb59f4cda15aa9 (patch) | |
tree | 6b9c9f8ef73ac7e4b733faa7735a049b193a2c94 /lib/hexdump.c | |
parent | 09f345da758fca1222b0971b65b2fddbdf78bb83 (diff) |
x86 setup: don't recalculate ss:esp unless really necessary
In order to work around old LILO versions providing an invalid ss
register, the current setup code always sets up a new stack,
immediately following .bss and the heap. But this breaks LOADLIN.
This rewrite of the workaround checks for an invalid stack (ss!=ds)
first, and leaves ss:sp alone otherwise (apart from aligning esp).
[hpa note: LOADLIN has a number of arbitrary hard-coded limits that
are being pushed up against. Without some major revision of LOADLIN
itself it will not be sustainable keeping it alive. This gives it
another brief lease on life, however. This patch also helps the
cmdline truncation problem with old versions of SYSLINUX.]
Signed-off-by: Jens Rottmann <JRottmann at LiPPERT-AT. de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib/hexdump.c')
0 files changed, 0 insertions, 0 deletions