Let kse_wakeup() take a KSE mailbox pointer argument.

Reviewed by:	julian
This commit is contained in:
Archie Cobbs 2002-10-02 16:48:16 +00:00
parent bc7b9f1dba
commit 36a8dac10d
11 changed files with 13 additions and 10 deletions

View File

@ -397,7 +397,7 @@ struct sysent ia32_sysent[] = {
{ 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_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */

View File

@ -546,7 +546,7 @@
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
int flags); }
379 NOPROTO BSD { int kse_exit(void); }
380 NOPROTO BSD { int kse_wakeup(void); }
380 NOPROTO BSD { int kse_wakeup(struct kse_mailbox *mbx); }
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
int newgroup); }
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }

View File

@ -397,7 +397,7 @@ struct sysent ia32_sysent[] = {
{ 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_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */

View File

@ -546,7 +546,7 @@
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
int flags); }
379 NOPROTO BSD { int kse_exit(void); }
380 NOPROTO BSD { int kse_wakeup(void); }
380 NOPROTO BSD { int kse_wakeup(struct kse_mailbox *mbx); }
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
int newgroup); }
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }

View File

@ -397,7 +397,7 @@ struct sysent ia32_sysent[] = {
{ 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_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
{ 0, (sy_call_t *)kse_release }, /* 383 = kse_release */

View File

@ -546,7 +546,7 @@
378 NOPROTO BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
int flags); }
379 NOPROTO BSD { int kse_exit(void); }
380 NOPROTO BSD { int kse_wakeup(void); }
380 NOPROTO BSD { int kse_wakeup(struct kse_mailbox *mbx); }
381 NOPROTO BSD { int kse_create(struct kse_mailbox *mbx, \
int newgroup); }
382 NOPROTO BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }

View File

@ -408,7 +408,7 @@ struct sysent sysent[] = {
{ 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_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */
{ AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */
{ SYF_MPSAFE | 0, (sy_call_t *)kse_release }, /* 383 = kse_release */

View File

@ -330,6 +330,9 @@ kse_release(struct thread *td, struct kse_release_args *uap)
return (0);
}
/* struct kse_wakeup_args {
struct kse_mailbox *mbx;
}; */
int
kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
{

View File

@ -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(struct kse_mailbox *mbx); }
381 STD BSD { int kse_create(struct kse_mailbox *mbx, \
int newgroup); }
382 STD BSD { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }

View File

@ -81,7 +81,7 @@ int kse_create(struct kse_mailbox *, int);
int kse_exit(void);
int kse_release(void);
int kse_thr_interrupt(struct kse_thr_mailbox *);
int kse_wakeup(void);
int kse_wakeup(struct kse_mailbox *);
#endif /* !_KERNEL */
#endif /* !_SYS_KSE_H_ */

View File

@ -1062,7 +1062,7 @@ struct kse_exit_args {
register_t dummy;
};
struct kse_wakeup_args {
register_t dummy;
char mbx_l_[PADL_(struct kse_mailbox *)]; struct kse_mailbox * mbx; char mbx_r_[PADR_(struct kse_mailbox *)];
};
struct kse_create_args {
char mbx_l_[PADL_(struct kse_mailbox *)]; struct kse_mailbox * mbx; char mbx_r_[PADR_(struct kse_mailbox *)];