Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/vm_machdep.c
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Intercept the return address from a freshly forked process that has NOT | * Intercept the return address from a freshly forked process that has NOT | ||||
* been scheduled yet. | * been scheduled yet. | ||||
* | * | ||||
* This is needed to make kernel threads stay in kernel mode. | * This is needed to make kernel threads stay in kernel mode. | ||||
*/ | */ | ||||
void | void | ||||
cpu_set_fork_handler(struct thread *td, void (*func)(void *), void *arg) | cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) | ||||
{ | { | ||||
struct callframe *cf; | struct callframe *cf; | ||||
CTR4(KTR_PROC, "%s called with td=%p func=%p arg=%p", | CTR4(KTR_PROC, "%s called with td=%p func=%p arg=%p", | ||||
__func__, td, func, arg); | __func__, td, func, arg); | ||||
cf = (struct callframe *)td->td_pcb->pcb_sp; | cf = (struct callframe *)td->td_pcb->pcb_sp; | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |