From bd781a1ed6e2eae7d7d70c50a8f2fbde6e7ccd4b Mon Sep 17 00:00:00 2001 From: Scott Long Date: Tue, 21 Oct 2003 07:03:27 +0000 Subject: [PATCH] Don peril-sensitive sunglasses and mark pipe(2) as MPSAFE. I've beaten up on it for the last 15 hours with no signs of problems. It gives a small (1%) gain on buildworld since pipe_read/pipe_write are already free of Giant. --- sys/kern/init_sysent.c | 4 ++-- sys/kern/syscalls.c | 2 +- sys/kern/syscalls.master | 2 +- sys/sys/syscall.h | 2 +- sys/sys/syscall.mk | 2 +- sys/sys/sysproto.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index ecb7770f122..2ea4393cdfb 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.153 2003/09/07 05:42:06 alc Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.154 2003/10/20 16:16:03 dwmalone Exp */ #include "opt_compat.h" @@ -70,7 +70,7 @@ struct sysent sysent[] = { { SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */ { compat(AS(olstat_args),lstat) }, /* 40 = old lstat */ { SYF_MPSAFE | AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */ - { 0, (sy_call_t *)pipe }, /* 42 = pipe */ + { SYF_MPSAFE | 0, (sy_call_t *)pipe }, /* 42 = pipe */ { SYF_MPSAFE | 0, (sy_call_t *)getegid }, /* 43 = getegid */ { SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */ { AS(ktrace_args), (sy_call_t *)ktrace }, /* 45 = ktrace */ diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index cc818e867ce..ef78b44c309 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.153 2003/09/07 05:42:06 alc Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.154 2003/10/20 16:16:03 dwmalone Exp */ const char *syscallnames[] = { diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 4bb4093dc6f..b4ca8d21358 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -97,7 +97,7 @@ 39 MSTD POSIX { pid_t getppid(void); } 40 COMPAT POSIX { int lstat(char *path, struct ostat *ub); } 41 MSTD POSIX { int dup(u_int fd); } -42 STD POSIX { int pipe(void); } +42 MSTD POSIX { int pipe(void); } 43 MSTD POSIX { gid_t getegid(void); } 44 MSTD BSD { int profil(caddr_t samples, size_t size, \ size_t offset, u_int scale); } diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 827bef21216..a045121426e 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.153 2003/09/07 05:42:06 alc Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.154 2003/10/20 16:16:03 dwmalone Exp */ #define SYS_syscall 0 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index fd782700805..edfec063877 100644 --- a/sys/sys/syscall.mk +++ b/sys/sys/syscall.mk @@ -1,7 +1,7 @@ # FreeBSD system call names. # DO NOT EDIT-- this file is automatically generated. # $FreeBSD$ -# created from FreeBSD: src/sys/kern/syscalls.master,v 1.153 2003/09/07 05:42:06 alc Exp +# created from FreeBSD: src/sys/kern/syscalls.master,v 1.154 2003/10/20 16:16:03 dwmalone Exp MIASM = \ syscall.o \ exit.o \ diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index af9c6c98699..973fe977e81 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.153 2003/09/07 05:42:06 alc Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.154 2003/10/20 16:16:03 dwmalone Exp */ #ifndef _SYS_SYSPROTO_H_