Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/pmap.c
Show First 20 Lines • Show All 6,520 Lines • ▼ Show 20 Lines | pmap_activate(struct thread *td) | ||||
PMAP_ASSERT_STAGE1(pmap); | PMAP_ASSERT_STAGE1(pmap); | ||||
critical_enter(); | critical_enter(); | ||||
(void)pmap_activate_int(pmap); | (void)pmap_activate_int(pmap); | ||||
critical_exit(); | critical_exit(); | ||||
} | } | ||||
/* | /* | ||||
* To eliminate the unused parameter "old", we would have to add an instruction | * To eliminate the unused parameter "old", we would have to add an instruction | ||||
* to cpu_switch(). | * to cpu_switch(). | ||||
kib: The comment is stalled, it seems | |||||
*/ | */ | ||||
struct pcb * | struct pcb * | ||||
pmap_switch(struct thread *old __unused, struct thread *new) | pmap_switch(struct thread *new) | ||||
{ | { | ||||
pcpu_bp_harden bp_harden; | pcpu_bp_harden bp_harden; | ||||
struct pcb *pcb; | struct pcb *pcb; | ||||
/* Store the new curthread */ | /* Store the new curthread */ | ||||
PCPU_SET(curthread, new); | PCPU_SET(curthread, new); | ||||
/* And the new pcb */ | /* And the new pcb */ | ||||
▲ Show 20 Lines • Show All 538 Lines • Show Last 20 Lines |
The comment is stalled, it seems