* Intercept the return address from a freshly forked process that has NOT * been scheduled yet. * * This is needed to make kernel threads stay in kernel mode. */
| 282 | * This is needed to make kernel threads stay in kernel mode. |
| 283 | */ |
| 284 | void |
| 285 | cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg) |
| 286 | { |
| 287 | td->td_pcb->pcb_regs.sf_r4 = (register_t)func; /* function */ |
| 288 | td->td_pcb->pcb_regs.sf_r5 = (register_t)arg; /* first arg */ |
| 289 | } |
| 290 | |
| 291 | /* |
| 292 | * Software interrupt handler for queued VM system processing. |
no outgoing calls
no test coverage detected