Optimize set_syscall_retval() for arm64 by predicting the return
value to be zero.
Details
Details
- Reviewers
manu emaste mhorne - Group Reviewers
arm64 - Commits
- rG24ac1bd8ec3d: arm64: optimize set_syscall_retval()
rGfb8c2f743ab6: arm64: optimize set_syscall_retval()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - 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; }