* Initialize proc0 */
| 694 | * Initialize proc0 |
| 695 | */ |
| 696 | void |
| 697 | init_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 | |
| 711 | void |
| 712 | set_stackptrs(int cpu) |
no test coverage detected