Optimize set_syscall_retval() for arm64 by predicting the return
value to be zero.
Details
Details
- Reviewers
manu emaste mhorne - Group Reviewers
arm64 - Commits
- R10:fb8c2f743ab6: arm64: optimize set_syscall_retval()
Diff Detail
Diff Detail
- Repository
- R10 FreeBSD src repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
similar to amd64,
if (__predict_true(error == 0)) { frame->tf_rax = td->td_retval[0]; frame->tf_rdx = td->td_retval[1]; frame->tf_rflags &= ~PSL_C; return; }