Skip to content

Commit

Permalink
arm64: Stop setting x0 for pcb_onfault handlers
Browse files Browse the repository at this point in the history
All handlers set x0 before returning, there is no need to also do so
in the data abort exception handler.

Reviewed by:	markj
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D46814
  • Loading branch information
zxombie committed Oct 14, 2024
1 parent f85af80 commit 224930e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sys/arm64/arm64/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ data_abort(struct thread *td, struct trapframe *frame, uint64_t esr,
bad_far:
if (td->td_intr_nesting_level == 0 &&
pcb->pcb_onfault != 0) {
frame->tf_x[0] = error;
frame->tf_elr = pcb->pcb_onfault;
return;
}
Expand Down

0 comments on commit 224930e

Please sign in to comment.