Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/stack_machdep.c
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | stack_save_td(struct stack *st, struct thread *td) | ||||
KASSERT(!TD_IS_SWAPPED(td), | KASSERT(!TD_IS_SWAPPED(td), | ||||
("stack_save_td: thread %p is swapped", td)); | ("stack_save_td: thread %p is swapped", td)); | ||||
if (TD_IS_RUNNING(td)) | if (TD_IS_RUNNING(td)) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
frame.sp = td->td_pcb->pcb_sp; | frame.sp = td->td_pcb->pcb_sp; | ||||
frame.fp = td->td_pcb->pcb_x[29]; | frame.fp = td->td_pcb->pcb_x[29]; | ||||
frame.pc = td->td_pcb->pcb_x[30]; | frame.pc = td->td_pcb->pcb_lr; | ||||
stack_capture(td, st, &frame); | stack_capture(td, st, &frame); | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
stack_save(struct stack *st) | stack_save(struct stack *st) | ||||
{ | { | ||||
Show All 11 Lines |