Changeset View
Changeset View
Standalone View
Standalone View
arm64/arm64/machdep.c
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
thread0.td_pcb = (struct pcb *)(thread0.td_kstack) - 1; | thread0.td_pcb = (struct pcb *)(thread0.td_kstack) - 1; | ||||
thread0.td_pcb->pcb_fpflags = 0; | thread0.td_pcb->pcb_fpflags = 0; | ||||
thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; | thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; | ||||
thread0.td_pcb->pcb_vfpcpu = UINT_MAX; | thread0.td_pcb->pcb_vfpcpu = UINT_MAX; | ||||
thread0.td_frame = &proc0_tf; | thread0.td_frame = &proc0_tf; | ||||
pcpup->pc_curpcb = thread0.td_pcb; | pcpup->pc_curpcb = thread0.td_pcb; | ||||
/* Set the base address of translation table 0. */ | /* Set the base address of translation table 0. */ | ||||
thread0.td_proc->p_md.md_l0addr = READ_SPECIALREG(ttbr0_el1); | thread0.td_proc->p_md.md_ttbr0 = READ_SPECIALREG(ttbr0_el1); | ||||
} | } | ||||
typedef struct { | typedef struct { | ||||
uint32_t type; | uint32_t type; | ||||
uint64_t phys_start; | uint64_t phys_start; | ||||
uint64_t virt_start; | uint64_t virt_start; | ||||
uint64_t num_pages; | uint64_t num_pages; | ||||
uint64_t attr; | uint64_t attr; | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |