X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e:/osfmk/arm/pcb.c diff --git a/osfmk/arm/pcb.c b/osfmk/arm/pcb.c index 2ec9f9dcb..c03e518b6 100644 --- a/osfmk/arm/pcb.c +++ b/osfmk/arm/pcb.c @@ -115,6 +115,12 @@ machine_switch_context( return retval; } +boolean_t +machine_thread_on_core(thread_t thread) +{ + return thread->machine.machine_thread_flags & MACHINE_THREAD_FLAGS_ON_CPU; +} + /* * Routine: machine_thread_create * @@ -143,7 +149,7 @@ machine_thread_create( struct pmap *new_pmap = vm_map_pmap(task->map); thread->machine.kptw_ttb = ((unsigned int) kernel_pmap->ttep) | TTBR_SETUP; - thread->machine.asid = new_pmap->asid; + thread->machine.asid = new_pmap->hw_asid; if (new_pmap->tte_index_max == NTTES) { thread->machine.uptw_ttc = 2; thread->machine.uptw_ttb = ((unsigned int) new_pmap->ttep) | TTBR_SETUP;