aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/powerpc/exec_machdep.c
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2011-09-16 13:58:51 +0000
committerKip Macy <kmacy@FreeBSD.org>2011-09-16 13:58:51 +0000
commit8451d0dd78c0a9c0383485b18aba9f081a9db8bb (patch)
tree2ed8c1cfa9e408c1c66c2cde0823123897e0306e /sys/powerpc/powerpc/exec_machdep.c
parent45f3db2122c56592609e50e37e76144ff467db2e (diff)
downloadsrc-8451d0dd78c0a9c0383485b18aba9f081a9db8bb.tar.gz
src-8451d0dd78c0a9c0383485b18aba9f081a9db8bb.zip
In order to maximize the re-usability of kernel code in user space this
patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz)
Notes
Notes: svn path=/head/; revision=225617
Diffstat (limited to 'sys/powerpc/powerpc/exec_machdep.c')
-rw-r--r--sys/powerpc/powerpc/exec_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/powerpc/exec_machdep.c b/sys/powerpc/powerpc/exec_machdep.c
index 107605168980..ec88d9faaea7 100644
--- a/sys/powerpc/powerpc/exec_machdep.c
+++ b/sys/powerpc/powerpc/exec_machdep.c
@@ -312,7 +312,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
}
int
-sigreturn(struct thread *td, struct sigreturn_args *uap)
+sys_sigreturn(struct thread *td, struct sigreturn_args *uap)
{
ucontext_t uc;
int error;
@@ -341,7 +341,7 @@ int
freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap)
{
- return sigreturn(td, (struct sigreturn_args *)uap);
+ return sys_sigreturn(td, (struct sigreturn_args *)uap);
}
#endif