From 99851f359e6f006b3223bb37dbc49e751ca8c13a Mon Sep 17 00:00:00 2001 From: kmacy Date: Fri, 16 Sep 2011 13:58:51 +0000 Subject: 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) --- sys/kern/subr_trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/subr_trap.c') diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 42adf80..d13e487 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -192,12 +192,12 @@ ast(struct trapframe *framep) } if (flags & TDF_ALRMPEND) { PROC_LOCK(p); - psignal(p, SIGVTALRM); + kern_psignal(p, SIGVTALRM); PROC_UNLOCK(p); } if (flags & TDF_PROFPEND) { PROC_LOCK(p); - psignal(p, SIGPROF); + kern_psignal(p, SIGPROF); PROC_UNLOCK(p); } #ifdef MAC -- cgit v1.1