| 253 | } |
| 254 | |
| 255 | void |
| 256 | cpu_thread_alloc(struct thread *td) |
| 257 | { |
| 258 | td->td_pcb = (struct pcb *)(td->td_kstack + td->td_kstack_pages * |
| 259 | PAGE_SIZE) - 1; |
| 260 | /* |
| 261 | * Ensure td_frame is aligned to an 8 byte boundary as it will be |
| 262 | * placed into the stack pointer which must be 8 byte aligned in |
| 263 | * the ARM EABI. |
| 264 | */ |
| 265 | td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1; |
| 266 | } |
| 267 | |
| 268 | void |
| 269 | cpu_thread_free(struct thread *td) |
no outgoing calls
no test coverage detected