]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/arm64/hibernate_restore.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / arm64 / hibernate_restore.c
index 2ed851c12fbaad7b081b6825733fd5e9d4f5317c..2c985f2f59d7d20f319a4a67a73a84cd55b1ac4a 100644 (file)
@@ -97,6 +97,9 @@ void
 pal_hib_patchup(pal_hib_ctx_t *ctx)
 {
 
+       /* Reinit the ppl hib lock as it was saved to the hibernation image held. */
+       ppl_hib_lock_reinit();
+
        // DRAM pages are captured from a PPL context, so here we restore all cpu_data structures to a non-PPL context
        for (int i = 0; i < MAX_CPUS; i++) {
                pmap_cpu_data_array[i].cpu_data.ppl_state = PPL_STATE_KERNEL;