git: 126979c52500 - stable/13 - exec_machdep.c: some style, use ANSI C definition for sys_sigreturn()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Oct 2021 09:24:06 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=126979c5250093325033266ee56bf6b8f531d083
commit 126979c5250093325033266ee56bf6b8f531d083
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-09-13 20:37:26 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-10 09:21:17 +0000
exec_machdep.c: some style, use ANSI C definition for sys_sigreturn()
(cherry picked from commit 9151abe323034275014dcfffb4a793bc5032bf87)
---
sys/amd64/amd64/exec_machdep.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/sys/amd64/amd64/exec_machdep.c b/sys/amd64/amd64/exec_machdep.c
index 22d78bff2905..426bb08edd7c 100644
--- a/sys/amd64/amd64/exec_machdep.c
+++ b/sys/amd64/amd64/exec_machdep.c
@@ -97,7 +97,7 @@ __FBSDID("$FreeBSD$");
static void get_fpcontext(struct thread *td, mcontext_t *mcp,
char *xfpusave, size_t xfpusave_len);
-static int set_fpcontext(struct thread *td, mcontext_t *mcp,
+static int set_fpcontext(struct thread *td, mcontext_t *mcp,
char *xfpustate, size_t xfpustate_len);
/*
@@ -236,11 +236,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
* state to gain improper privileges.
*/
int
-sys_sigreturn(td, uap)
- struct thread *td;
- struct sigreturn_args /* {
- const struct __ucontext *sigcntxp;
- } */ *uap;
+sys_sigreturn(struct thread *td, struct sigreturn_args *uap)
{
ucontext_t uc;
struct pcb *pcb;
@@ -938,7 +934,7 @@ user_dbreg_trap(register_t dr6)
* None of the breakpoint bits are set meaning this
* trap was not caused by any of the debug registers
*/
- return 0;
+ return (0);
}
dr7 = rdr7();
@@ -948,7 +944,7 @@ user_dbreg_trap(register_t dr6)
* thus the trap couldn't have been caused by the
* hardware debug registers
*/
- return 0;
+ return (0);
}
nbp = 0;
@@ -976,12 +972,12 @@ user_dbreg_trap(register_t dr6)
/*
* addr[i] is in user space
*/
- return nbp;
+ return (nbp);
}
}
/*
* None of the breakpoints are in user space.
*/
- return 0;
+ return (0);
}