Skip to content
Commit 67e6b115 authored by Huacai Chen's avatar Huacai Chen
Browse files

LoongArch: Automatically disable KASLR for hibernation



Hibernation assumes the memory layout after resume be the same as that
before sleep, so it expects the kernel is loaded at the same position.
To achieve this goal we automatically disable KASLR if user explicitly
requests hibernation via the "resume=" command line. Since "nohibernate"
and "noresume" have higher priorities than "resume=", we only disable
KASLR if there is no "nohibernate" and "noresume".

Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent e523a5a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment