diff options
author | Luiz Souza <luiz@netgate.com> | 2018-02-23 19:41:50 -0300 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2018-02-23 19:41:50 -0300 |
commit | 34aefac884f7fa4f4c6ab3142ef6db3a7f6f6842 (patch) | |
tree | 96b7a36b2a1137863308cc87300114ad6c11978f /sys | |
parent | 30d0ddbaac6a3884072d2b39e558d836ebf27ae8 (diff) | |
download | FreeBSD-src-34aefac884f7fa4f4c6ab3142ef6db3a7f6f6842.zip FreeBSD-src-34aefac884f7fa4f4c6ab3142ef6db3a7f6f6842.tar.gz |
Revert "Revert "MFC r321922:""
This reverts commit f5e92dfb08a85dd8aad9f0e021f58ce31c33f9f4.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 070d722b..67c5868 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -933,6 +933,6 @@ amd64_syscall(struct thread *td, int traced) * not be safe. Instead, use the full return path which * catches the problem safely. */ - if (td->td_frame->tf_rip >= VM_MAXUSER_ADDRESS) + if (__predict_false(td->td_frame->tf_rip >= VM_MAXUSER_ADDRESS)) set_pcb_flags(td->td_pcb, PCB_FULL_IRET); } |