summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-02-19 02:40:31 +0000
committerjulian <julian@FreeBSD.org>2002-02-19 02:40:31 +0000
commitffdde8ed998b2a6fc54e18d6771e0757bd735c84 (patch)
tree294898533d0b94b10c18f43cdeb30f9c22603cd4 /sys/kern
parent8cdc9fd108c3c90b46de7b68b6306a6b62243e3b (diff)
downloadFreeBSD-src-ffdde8ed998b2a6fc54e18d6771e0757bd735c84.zip
FreeBSD-src-ffdde8ed998b2a6fc54e18d6771e0757bd735c84.tar.gz
Add stub syscalls and definitions for KSE calls.
"Book'em Danno"
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_sysent.c7
-rw-r--r--sys/kern/kern_proc.c45
-rw-r--r--sys/kern/syscalls.c7
-rw-r--r--sys/kern/syscalls.master2
4 files changed, 58 insertions, 3 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); }
OpenPOWER on IntegriCloud