]> git.baikalelectronics.ru Git - kernel.git/commit
x86: handle initrd that extends into unusable memory
authorYinghai Lu <yinghai@kernel.org>
Fri, 5 Jun 2009 02:14:22 +0000 (19:14 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 11 Jun 2009 22:19:13 +0000 (15:19 -0700)
commit430e8d872da083c383111ed45855e9486b9ce4d6
tree331d4e75f41cdc8acee8c3d9eedee8b3e41a1608
parent941b4cb135646d7920d5664381572862bbf8890e
x86: handle initrd that extends into unusable memory

On a system where system memory (according e820) is not covered by
mtrr, mtrr_trim_memory converts a portion of memory to reserved, but
bootloader has already put the initrd in that range.

Thus, we need to have 64bit to use relocate_initrd too.

[ Impact: fix using initrd when mtrr_trim_memory happen ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: stable@kernel.org
arch/x86/kernel/setup.c