Commit 9ce41ea1 authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: fix crash kernel memory reservation

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I73OCN



--------------------------------

Memory for crash kernel is reserved through memblock, so it should be
done before paging init.

Check base and size of requested memory region and make sure it can be
reserved before doing the actual reservation.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 88f6a504
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment