linux/arch/x86/boot/compressed
H. Peter Anvin 7ed42a28b2 x86, boot: correct sanity checks in boot/compressed/misc.c
arch/x86/boot/compressed/misc.c contains several sanity checks on the
output address.  Correct constraints that are no longer correct:

- the alignment test should be MIN_KERNEL_ALIGN on both 32 and 64
  bits.
- the 64 bit maximum address was set to 2^40, which was the limit of
  one specific x86-64 implementation.  Change the test to 2^46, the
  current Linux limit, and at least try to test the end rather than
  the beginning.
- for non-relocatable kernels, test against LOAD_PHYSICAL_ADDR on both
  32 and 64 bits.

[ Impact: fix potential boot failure due to invalid tests ]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-12 11:33:08 -07:00
..
.gitignore .gitignore updates 2008-10-30 11:38:45 -07:00
head_32.S x86, boot: make kernel_alignment adjustable; new bzImage fields 2009-05-11 17:44:39 -07:00
head_64.S x86, boot: make kernel_alignment adjustable; new bzImage fields 2009-05-11 17:44:39 -07:00
Makefile x86, boot: determine compressed code offset at compile time 2009-05-08 17:46:34 -07:00
misc.c x86, boot: correct sanity checks in boot/compressed/misc.c 2009-05-12 11:33:08 -07:00
mkpiggy.c x86, boot: determine compressed code offset at compile time 2009-05-08 17:46:34 -07:00
relocs.c x86 setup: correct segfault in generation of 32-bit reloc kernel 2008-10-03 13:42:04 -07:00
vmlinux.lds.S x86, boot: straighten out ranges to copy/zero in compressed/head*.S 2009-05-08 17:18:10 -07:00