Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kexec: x86: Use init_size in 32-bit case as well
If the region of the memory is not enough for the decompressed kernel, e.g., it follows by reserved memory, Bad Things may happen as it's proven to be in practice on Intel Merrifield platform. Include decompressed kernel size into the calculations for finding the appropriate hole in memory to load kernel to. Note, this has been already done for 64-bit case, this just synchronises the approach for 32-bit case. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Simon Horman <[email protected]>
- Loading branch information