• Huacai Chen's avatar
    LoongArch: Automatically disable KASLR for hibernation · 67e6b115
    Huacai Chen authored
    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>
    67e6b115
relocate.c 7.03 KB