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

Function init_proc0

freebsd/arm/arm/machdep.c:696–709  ·  view source on GitHub ↗

* Initialize proc0 */

Source from the content-addressed store, hash-verified

694 * Initialize proc0
695 */
696void
697init_proc0(vm_offset_t kstack)
698{
699 proc_linkup0(&proc0, &thread0);
700 thread0.td_kstack = kstack;
701 thread0.td_kstack_pages = kstack_pages;
702 thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
703 thread0.td_kstack_pages * PAGE_SIZE) - 1;
704 thread0.td_pcb->pcb_flags = 0;
705 thread0.td_pcb->pcb_vfpcpu = -1;
706 thread0.td_pcb->pcb_vfpstate.fpscr = VFPSCR_DN;
707 thread0.td_frame = &proc0_tf;
708 pcpup->pc_curpcb = thread0.td_pcb;
709}
710
711void
712set_stackptrs(int cpu)

Callers 1

initarmFunction · 0.70

Calls 1

proc_linkup0Function · 0.85

Tested by

no test coverage detected