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/dev/syscons/syscons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/syscons/syscons.c') diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index b8f328e..227350e 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -2508,7 +2508,7 @@ signal_vt_rel(scr_stat *scp) return FALSE; scp->status |= SWITCH_WAIT_REL; PROC_LOCK(scp->proc); - psignal(scp->proc, scp->smode.relsig); + kern_psignal(scp->proc, scp->smode.relsig); PROC_UNLOCK(scp->proc); DPRINTF(5, ("sending relsig to %d\n", scp->pid)); return TRUE; @@ -2523,7 +2523,7 @@ signal_vt_acq(scr_stat *scp) cnavailable(sc_consptr, FALSE); scp->status |= SWITCH_WAIT_ACQ; PROC_LOCK(scp->proc); - psignal(scp->proc, scp->smode.acqsig); + kern_psignal(scp->proc, scp->smode.acqsig); PROC_UNLOCK(scp->proc); DPRINTF(5, ("sending acqsig to %d\n", scp->pid)); return TRUE; -- cgit v1.1