diff options
-rw-r--r-- | sys/kern/init_sysent.c | 7 | ||||
-rw-r--r-- | sys/kern/kern_proc.c | 45 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 7 | ||||
-rw-r--r-- | sys/kern/syscalls.master | 2 | ||||
-rw-r--r-- | sys/sys/syscall.h | 9 | ||||
-rw-r--r-- | sys/sys/syscall.mk | 9 | ||||
-rw-r--r-- | sys/sys/sysproto.h | 23 |
7 files changed, 94 insertions, 8 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index f6eb249..c7d6ded 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.104 2002/02/17 17:41:28 deischen Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.105 2002/02/19 02:19:36 julian Exp */ #include "opt_compat.h" @@ -401,4 +401,9 @@ struct sysent sysent[] = { { AS(eaccess_args), (sy_call_t *)eaccess }, /* 376 = eaccess */ { 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */ { AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */ + { 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */ + { 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */ + { AS(kse_new_args), (sy_call_t *)kse_new }, /* 381 = kse_new */ + { AS(thread_wakeup_args), (sy_call_t *)thread_wakeup }, /* 382 = thread_wakeup */ + { 0, (sy_call_t *)kse_yield }, /* 383 = kse_yield */ }; diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index afa53a5..b2fcae7 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -195,6 +195,51 @@ thread_get(struct proc *p) return (td); } + +/********************* +* STUB KSE syscalls +*********************/ + +int +thread_wakeup(struct thread *td, struct thread_wakeup_args *uap) +/* struct thread_wakeup_args { struct thread_mailbox *tmbx; }; */ +{ + + return(EINVAL); +} + +int +kse_exit(struct thread *td, struct kse_exit_args *uap) +{ + + return(EINVAL); +} + +int +kse_yield(struct thread *td, struct kse_yield_args *uap) +{ + + return(EINVAL); +} + +int kse_wakeup(struct thread *td, struct kse_wakeup_args *uap) +{ + + return(EINVAL); +} + + +int +kse_new(struct thread *td, struct kse_new_args *uap) +/* struct kse_new_args { + struct kse_mailbox *mbx; + int new_grp_flag; +}; */ +{ + + return (EINVAL); +} + /* * Is p an inferior of the current process? */ diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 1eb4977..32107e1 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.104 2002/02/17 17:41:28 deischen Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.105 2002/02/19 02:19:36 julian Exp */ char *syscallnames[] = { @@ -386,4 +386,9 @@ char *syscallnames[] = { "eaccess", /* 376 = eaccess */ "#377", /* 377 = afs_syscall */ "nmount", /* 378 = nmount */ + "kse_exit", /* 379 = kse_exit */ + "kse_wakeup", /* 380 = kse_wakeup */ + "kse_new", /* 381 = kse_new */ + "thread_wakeup", /* 382 = thread_wakeup */ + "kse_yield", /* 383 = kse_yield */ }; diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index ff2b864..86b2c08 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -548,7 +548,7 @@ 378 STD BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \ int flags); } 379 STD BSD { int kse_exit(void); } -380 STD BSD { int kse_wakeup(void *); } +380 STD BSD { int kse_wakeup(void); } 381 STD BSD { int kse_new(struct kse_mailbox * mbx, \ int new_grp_flag); } 382 STD BSD { int thread_wakeup(struct thread_mailbox *tmbx); } diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 29340f1..0d6f51e 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.104 2002/02/17 17:41:28 deischen Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.105 2002/02/19 02:19:36 julian Exp */ #define SYS_syscall 0 @@ -298,4 +298,9 @@ #define SYS_nfsclnt 375 #define SYS_eaccess 376 #define SYS_nmount 378 -#define SYS_MAXSYSCALL 379 +#define SYS_kse_exit 379 +#define SYS_kse_wakeup 380 +#define SYS_kse_new 381 +#define SYS_thread_wakeup 382 +#define SYS_kse_yield 383 +#define SYS_MAXSYSCALL 384 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index 6297a80..bb65c1b 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.104 2002/02/17 17:41:28 deischen Exp +# created from FreeBSD: src/sys/kern/syscalls.master,v 1.105 2002/02/19 02:19:36 julian Exp MIASM = \ syscall.o \ exit.o \ @@ -247,4 +247,9 @@ MIASM = \ __setugid.o \ nfsclnt.o \ eaccess.o \ - nmount.o + nmount.o \ + kse_exit.o \ + kse_wakeup.o \ + kse_new.o \ + thread_wakeup.o \ + kse_yield.o diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 41bfb95..d81fb9f 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.104 2002/02/17 17:41:28 deischen Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.105 2002/02/19 02:19:36 julian Exp */ #ifndef _SYS_SYSPROTO_H_ @@ -1089,6 +1089,22 @@ struct nmount_args { char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; +struct kse_exit_args { + register_t dummy; +}; +struct kse_wakeup_args { + register_t dummy; +}; +struct kse_new_args { + char mbx_l_[PADL_(struct kse_mailbox *)]; struct kse_mailbox * mbx; char mbx_r_[PADR_(struct kse_mailbox *)]; + char new_grp_flag_l_[PADL_(int)]; int new_grp_flag; char new_grp_flag_r_[PADR_(int)]; +}; +struct thread_wakeup_args { + char tmbx_l_[PADL_(struct thread_mailbox *)]; struct thread_mailbox * tmbx; char tmbx_r_[PADR_(struct thread_mailbox *)]; +}; +struct kse_yield_args { + register_t dummy; +}; int nosys __P((struct thread *, struct nosys_args *)); void sys_exit __P((struct thread *, struct sys_exit_args *)); int fork __P((struct thread *, struct fork_args *)); @@ -1333,6 +1349,11 @@ int __setugid __P((struct thread *, struct __setugid_args *)); int nfsclnt __P((struct thread *, struct nfsclnt_args *)); int eaccess __P((struct thread *, struct eaccess_args *)); int nmount __P((struct thread *, struct nmount_args *)); +int kse_exit __P((struct thread *, struct kse_exit_args *)); +int kse_wakeup __P((struct thread *, struct kse_wakeup_args *)); +int kse_new __P((struct thread *, struct kse_new_args *)); +int thread_wakeup __P((struct thread *, struct thread_wakeup_args *)); +int kse_yield __P((struct thread *, struct kse_yield_args *)); #ifdef COMPAT_43 |