Loading arch/arm64/kernel/hibernate.c +9 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,14 @@ static struct arch_hibernate_hdr { phys_addr_t ttbr1_el1; void (*reenter_kernel)(void); /* * Another entry point if jump to kernel happens with mmu disabled, * generally done when restoring hibernation image from bootloader * context */ phys_addr_t phys_reenter_kernel; /* * We need to know where the __hyp_stub_vectors are after restore to * re-configure el2. Loading Loading @@ -126,6 +134,7 @@ int arch_hibernation_header_save(void *addr, unsigned int max_size) arch_hdr_invariants(&hdr->invariants); hdr->ttbr1_el1 = __pa_symbol(swapper_pg_dir); hdr->reenter_kernel = _cpu_resume; hdr->phys_reenter_kernel = __pa(cpu_resume); /* We can't use __hyp_get_vectors() because kvm may still be loaded */ if (el2_reset_needed()) Loading Loading
arch/arm64/kernel/hibernate.c +9 −0 Original line number Diff line number Diff line Loading @@ -83,6 +83,14 @@ static struct arch_hibernate_hdr { phys_addr_t ttbr1_el1; void (*reenter_kernel)(void); /* * Another entry point if jump to kernel happens with mmu disabled, * generally done when restoring hibernation image from bootloader * context */ phys_addr_t phys_reenter_kernel; /* * We need to know where the __hyp_stub_vectors are after restore to * re-configure el2. Loading Loading @@ -126,6 +134,7 @@ int arch_hibernation_header_save(void *addr, unsigned int max_size) arch_hdr_invariants(&hdr->invariants); hdr->ttbr1_el1 = __pa_symbol(swapper_pg_dir); hdr->reenter_kernel = _cpu_resume; hdr->phys_reenter_kernel = __pa(cpu_resume); /* We can't use __hyp_get_vectors() because kvm may still be loaded */ if (el2_reset_needed()) Loading