MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpu_thread_alloc

Function cpu_thread_alloc

freebsd/arm/arm/vm_machdep.c:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void
256cpu_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
268void
269cpu_thread_free(struct thread *td)

Callers 2

thread_allocFunction · 0.50
thread_alloc_stackFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected