X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2a1bd2d3eef5c7a7bb14f4bb9fdbca9a96ee4752..HEAD:/osfmk/arm64/hibernate_restore.c?ds=inline diff --git a/osfmk/arm64/hibernate_restore.c b/osfmk/arm64/hibernate_restore.c index 2ed851c12..2c985f2f5 100644 --- a/osfmk/arm64/hibernate_restore.c +++ b/osfmk/arm64/hibernate_restore.c @@ -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;