Reg... hang on, why don't we build this at compile time?!?

This commit is contained in:
ad 2007-12-07 22:42:11 +00:00
parent bca34dfe7a
commit 9c8beda3c8
4 changed files with 53 additions and 19 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscall.h,v 1.69 2007/11/09 15:10:30 dsl Exp $ */
/* $NetBSD: netbsd32_syscall.h,v 1.70 2007/12/07 22:42:11 ad Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.62 2007/11/09 15:05:34 dsl Exp
* created from NetBSD: syscalls.master,v 1.63 2007/12/07 22:41:05 ad Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@ -915,6 +915,15 @@
/* syscall: "netbsd32__lwp_unpark_all" ret: "netbsd32_size_t" args: "const netbsd32_lwpidp" "netbsd32_size_t" "const netbsd32_voidp" */
#define NETBSD32_SYS_netbsd32__lwp_unpark_all 322
/* syscall: "netbsd32__lwp_setname" ret: "int" args: "lwpid_t" "const netbsd32_charp" */
#define NETBSD32_SYS_netbsd32__lwp_setname 323
/* syscall: "netbsd32__lwp_getname" ret: "int" args: "lwpid_t" "netbsd32_charp" "netbsd32_size_t" */
#define NETBSD32_SYS_netbsd32__lwp_getname 324
/* syscall: "netbsd32__lwp_ctl" ret: "int" args: "int" "netbsd32_pointer_t" */
#define NETBSD32_SYS_netbsd32__lwp_ctl 325
/* 330 is obsolete netbsd32_sa_register */
/* 331 is obsolete netbsd32_sa_stacks */
/* 332 is obsolete sys_sa_enable */

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscallargs.h,v 1.69 2007/11/09 15:10:30 dsl Exp $ */
/* $NetBSD: netbsd32_syscallargs.h,v 1.70 2007/12/07 22:42:12 ad Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.62 2007/11/09 15:05:34 dsl Exp
* created from NetBSD: syscalls.master,v 1.63 2007/12/07 22:41:05 ad Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@ -1656,6 +1656,25 @@ struct netbsd32__lwp_unpark_all_args {
};
check_syscall_args(netbsd32__lwp_unpark_all)
struct netbsd32__lwp_setname_args {
syscallarg(lwpid_t) target;
syscallarg(const netbsd32_charp) name;
};
check_syscall_args(netbsd32__lwp_setname)
struct netbsd32__lwp_getname_args {
syscallarg(lwpid_t) target;
syscallarg(netbsd32_charp) name;
syscallarg(netbsd32_size_t) len;
};
check_syscall_args(netbsd32__lwp_getname)
struct netbsd32__lwp_ctl_args {
syscallarg(int) features;
syscallarg(netbsd32_pointer_t) address;
};
check_syscall_args(netbsd32__lwp_ctl)
struct netbsd32___sigaction_sigtramp_args {
syscallarg(int) signum;
syscallarg(const netbsd32_sigactionp_t) nsa;
@ -2599,6 +2618,12 @@ int netbsd32__lwp_unpark(struct lwp *, void *, register_t *);
int netbsd32__lwp_unpark_all(struct lwp *, void *, register_t *);
int netbsd32__lwp_setname(struct lwp *, void *, register_t *);
int netbsd32__lwp_getname(struct lwp *, void *, register_t *);
int netbsd32__lwp_ctl(struct lwp *, void *, register_t *);
int netbsd32___sigaction_sigtramp(struct lwp *, void *, register_t *);
int netbsd32_rasctl(struct lwp *, void *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.68 2007/11/09 15:10:31 dsl Exp $ */
/* $NetBSD: netbsd32_syscalls.c,v 1.69 2007/12/07 22:42:12 ad Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.62 2007/11/09 15:05:34 dsl Exp
* created from NetBSD: syscalls.master,v 1.63 2007/12/07 22:41:05 ad Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.68 2007/11/09 15:10:31 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.69 2007/12/07 22:42:12 ad Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -436,9 +436,9 @@ const char *const netbsd32_syscallnames[] = {
/* 320 */ "netbsd32__lwp_park",
/* 321 */ "netbsd32__lwp_unpark",
/* 322 */ "netbsd32__lwp_unpark_all",
/* 323 */ "#323 (unimplemented)",
/* 324 */ "#324 (unimplemented)",
/* 325 */ "#325 (unimplemented)",
/* 323 */ "netbsd32__lwp_setname",
/* 324 */ "netbsd32__lwp_getname",
/* 325 */ "netbsd32__lwp_ctl",
/* 326 */ "#326 (unimplemented)",
/* 327 */ "#327 (unimplemented)",
/* 328 */ "#328 (unimplemented)",

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_sysent.c,v 1.68 2007/11/09 15:10:32 dsl Exp $ */
/* $NetBSD: netbsd32_sysent.c,v 1.69 2007/12/07 22:42:12 ad Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.62 2007/11/09 15:05:34 dsl Exp
* created from NetBSD: syscalls.master,v 1.63 2007/12/07 22:41:05 ad Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.68 2007/11/09 15:10:32 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.69 2007/12/07 22:42:12 ad Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
@ -870,12 +870,12 @@ struct sysent netbsd32_sysent[] = {
netbsd32__lwp_unpark }, /* 321 = netbsd32__lwp_unpark */
{ ns(struct netbsd32__lwp_unpark_all_args), SYCALL_MPSAFE | 0,
netbsd32__lwp_unpark_all }, /* 322 = netbsd32__lwp_unpark_all */
{ 0, 0, 0,
sys_nosys }, /* 323 = unimplemented */
{ 0, 0, 0,
sys_nosys }, /* 324 = unimplemented */
{ 0, 0, 0,
sys_nosys }, /* 325 = unimplemented */
{ ns(struct netbsd32__lwp_setname_args), 0,
netbsd32__lwp_setname }, /* 323 = netbsd32__lwp_setname */
{ ns(struct netbsd32__lwp_getname_args), 0,
netbsd32__lwp_getname }, /* 324 = netbsd32__lwp_getname */
{ ns(struct netbsd32__lwp_ctl_args), 0,
netbsd32__lwp_ctl }, /* 325 = netbsd32__lwp_ctl */
{ 0, 0, 0,
sys_nosys }, /* 326 = unimplemented */
{ 0, 0, 0,