Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/machdep.c
Show First 20 Lines • Show All 929 Lines • ▼ Show 20 Lines | init_proc0(vm_offset_t kstack) | ||||
thread0.td_pcb = (struct pcb *)(thread0.td_kstack + | thread0.td_pcb = (struct pcb *)(thread0.td_kstack + | ||||
thread0.td_kstack_pages * PAGE_SIZE) - 1; | thread0.td_kstack_pages * PAGE_SIZE) - 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; | ||||
ptrauth_thread0(&thread0); | ptrauth_thread0(&thread0); | ||||
pcpup->pc_curpcb = thread0.td_pcb; | pcpup->pc_curpcb = thread0.td_pcb; | ||||
/* | |||||
* Unmask SError exceptions. They are used to signal a RAS failure, | |||||
* or other hardware error. | |||||
*/ | |||||
serror_enable(); | |||||
mhorne: Maybe add `serror_enable()` or similar to cpufunc.h and use that? | |||||
} | } | ||||
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 571 Lines • Show Last 20 Lines |
Maybe add serror_enable() or similar to cpufunc.h and use that?