summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2011-09-16 13:58:51 +0000
committerkmacy <kmacy@FreeBSD.org>2011-09-16 13:58:51 +0000
commit99851f359e6f006b3223bb37dbc49e751ca8c13a (patch)
tree2ed8c1cfa9e408c1c66c2cde0823123897e0306e /sys/cddl
parentbf8fedabcd023c90bb2ee4ce0e5d6d8c2b927714 (diff)
downloadFreeBSD-src-99851f359e6f006b3223bb37dbc49e751ca8c13a.zip
FreeBSD-src-99851f359e6f006b3223bb37dbc49e751ca8c13a.tar.gz
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)
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c4
-rw-r--r--sys/cddl/contrib/opensolaris/uts/sparc/dtrace/fasttrap_isa.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
index f7aeecc..ae243fd 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
@@ -5669,7 +5669,7 @@ dtrace_action_raise(uint64_t sig)
#else
struct proc *p = curproc;
PROC_LOCK(p);
- psignal(p, sig);
+ kern_psignal(p, sig);
PROC_UNLOCK(p);
#endif
}
@@ -5689,7 +5689,7 @@ dtrace_action_stop(void)
#else
struct proc *p = curproc;
PROC_LOCK(p);
- psignal(p, SIGSTOP);
+ kern_psignal(p, SIGSTOP);
PROC_UNLOCK(p);
#endif
}
diff --git a/sys/cddl/contrib/opensolaris/uts/sparc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/sparc/dtrace/fasttrap_isa.c
index 45d8747..f3cf665 100644
--- a/sys/cddl/contrib/opensolaris/uts/sparc/dtrace/fasttrap_isa.c
+++ b/sys/cddl/contrib/opensolaris/uts/sparc/dtrace/fasttrap_isa.c
@@ -1474,7 +1474,7 @@ err:
* If the copy in failed, the process will be in a irrecoverable
* state, and we have no choice but to kill it.
*/
- psignal(ttoproc(curthread), SIGILL);
+ kern_psignal(ttoproc(curthread), SIGILL);
return (0);
}
@@ -1593,5 +1593,5 @@ err:
* If we couldn't record this register's value, the process is in an
* irrecoverable state and we have no choice but to euthanize it.
*/
- psignal(ttoproc(curthread), SIGILL);
+ kern_psignal(ttoproc(curthread), SIGILL);
}
OpenPOWER on IntegriCloud