]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/arm/pcb.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / osfmk / arm / pcb.c
index 2ec9f9dcbca8172178306e8a33e2f94f7bb169d4..c03e518b63e191038e290e64d26e1dde85abdcc7 100644 (file)
@@ -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;