summaryrefslogtreecommitdiff
path: root/kexec/phys_to_virt.c
diff options
context:
space:
mode:
authorHongyan Xia <hongyxia@amazon.com>2021-04-06 15:11:52 +0100
committerSimon Horman <horms@verge.net.au>2021-04-07 21:26:41 +0200
commit774a16b16328310c2be41794fa462a0f6691c121 (patch)
tree2b794d0755c30e105171c6326e3db48bf9df99eb /kexec/phys_to_virt.c
parent28b0491b0f089046c623286c45815682d6506159 (diff)
Fix where the real mode interrupt vector ends
The real mode ends at 0x400, not 0x100. The code intentionally excludes the IVT as RAM, so use the correct address. Also, 0x100 is not 1K aligned and will be rejected by add_memmap(). We have observed problems that after a multiboot2 kexec, the next kexec will throw away such unaligned chunks, losing memory for the next next kernel. In some corner cases, such loss of memory can actually cause OOM during boot. Signed-off-by: Hongyan Xia <hongyxia@amazon.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/phys_to_virt.c')
0 files changed, 0 insertions, 0 deletions