Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/exec_machdep.c
| Show First 20 Lines • Show All 1,077 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void | void | ||||
| cpu_thread_alloc(struct thread *td) | cpu_thread_alloc(struct thread *td) | ||||
| { | { | ||||
| struct pcb *pcb; | struct pcb *pcb; | ||||
| pcb = (struct pcb *)((td->td_kstack + td->td_kstack_pages * PAGE_SIZE - | pcb = (struct pcb *)((td->td_kstack + td->td_kstack_pages * PAGE_SIZE - | ||||
| sizeof(struct pcb)) & ~0x2fUL); | sizeof(struct pcb)) & ~0x3fUL); | ||||
| td->td_pcb = pcb; | td->td_pcb = pcb; | ||||
| td->td_frame = (struct trapframe *)pcb - 1; | td->td_frame = (struct trapframe *)pcb - 1; | ||||
| } | } | ||||
| void | void | ||||
| cpu_thread_free(struct thread *td) | cpu_thread_free(struct thread *td) | ||||
| { | { | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||