This commit is contained in:
Konstantin Belousov 2021-11-10 19:56:51 +02:00
parent 43e6f07b06
commit 439c3d9563
10 changed files with 35 additions and 3 deletions

View File

@ -509,4 +509,5 @@
#define FREEBSD32_SYS_freebsd32_aio_writev 578
#define FREEBSD32_SYS_freebsd32_aio_readv 579
#define FREEBSD32_SYS_freebsd32_fspacectl 580
#define FREEBSD32_SYS_MAXSYSCALL 581
#define FREEBSD32_SYS_sched_getcpu 581
#define FREEBSD32_SYS_MAXSYSCALL 582

View File

@ -617,4 +617,5 @@ const char *freebsd32_syscallnames[] = {
"freebsd32_aio_writev", /* 578 = freebsd32_aio_writev */
"freebsd32_aio_readv", /* 579 = freebsd32_aio_readv */
"freebsd32_fspacectl", /* 580 = freebsd32_fspacectl */
"sched_getcpu", /* 581 = sched_getcpu */
};

View File

@ -670,4 +670,5 @@ struct sysent freebsd32_sysent[] = {
{ .sy_narg = AS(freebsd32_aio_writev_args), .sy_call = (sy_call_t *)freebsd32_aio_writev, .sy_auevent = AUE_AIO_WRITEV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 578 = freebsd32_aio_writev */
{ .sy_narg = AS(freebsd32_aio_readv_args), .sy_call = (sy_call_t *)freebsd32_aio_readv, .sy_auevent = AUE_AIO_READV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 579 = freebsd32_aio_readv */
{ .sy_narg = AS(freebsd32_fspacectl_args), .sy_call = (sy_call_t *)freebsd32_fspacectl, .sy_auevent = AUE_FSPACECTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 580 = freebsd32_fspacectl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_sched_getcpu, .sy_auevent = AUE_NULL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 581 = sched_getcpu */
};

View File

@ -3418,6 +3418,11 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 5;
break;
}
/* sched_getcpu */
case 581: {
*n_args = 0;
break;
}
default:
*n_args = 0;
break;
@ -9216,6 +9221,9 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* sched_getcpu */
case 581:
break;
default:
break;
};
@ -11140,6 +11148,8 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* sched_getcpu */
case 581:
default:
break;
};

View File

@ -636,4 +636,5 @@ struct sysent sysent[] = {
{ .sy_narg = AS(aio_writev_args), .sy_call = (sy_call_t *)sys_aio_writev, .sy_auevent = AUE_AIO_WRITEV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 578 = aio_writev */
{ .sy_narg = AS(aio_readv_args), .sy_call = (sy_call_t *)sys_aio_readv, .sy_auevent = AUE_AIO_READV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 579 = aio_readv */
{ .sy_narg = AS(fspacectl_args), .sy_call = (sy_call_t *)sys_fspacectl, .sy_auevent = AUE_FSPACECTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 580 = fspacectl */
{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_sched_getcpu, .sy_auevent = AUE_NULL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 581 = sched_getcpu */
};

View File

@ -587,4 +587,5 @@ const char *syscallnames[] = {
"aio_writev", /* 578 = aio_writev */
"aio_readv", /* 579 = aio_readv */
"fspacectl", /* 580 = fspacectl */
"sched_getcpu", /* 581 = sched_getcpu */
};

View File

@ -3410,6 +3410,11 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 5;
break;
}
/* sched_getcpu */
case 581: {
*n_args = 0;
break;
}
default:
*n_args = 0;
break;
@ -9121,6 +9126,9 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* sched_getcpu */
case 581:
break;
default:
break;
};
@ -11072,6 +11080,8 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* sched_getcpu */
case 581:
default:
break;
};

View File

@ -518,4 +518,5 @@
#define SYS_aio_writev 578
#define SYS_aio_readv 579
#define SYS_fspacectl 580
#define SYS_MAXSYSCALL 581
#define SYS_sched_getcpu 581
#define SYS_MAXSYSCALL 582

View File

@ -423,4 +423,5 @@ MIASM = \
__specialfd.o \
aio_writev.o \
aio_readv.o \
fspacectl.o
fspacectl.o \
sched_getcpu.o

View File

@ -1854,6 +1854,9 @@ struct fspacectl_args {
char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
char rmsr_l_[PADL_(struct spacectl_range *)]; struct spacectl_range * rmsr; char rmsr_r_[PADR_(struct spacectl_range *)];
};
struct sched_getcpu_args {
register_t dummy;
};
int nosys(struct thread *, struct nosys_args *);
void sys_sys_exit(struct thread *, struct sys_exit_args *);
int sys_fork(struct thread *, struct fork_args *);
@ -2249,6 +2252,7 @@ int sys___specialfd(struct thread *, struct __specialfd_args *);
int sys_aio_writev(struct thread *, struct aio_writev_args *);
int sys_aio_readv(struct thread *, struct aio_readv_args *);
int sys_fspacectl(struct thread *, struct fspacectl_args *);
int sys_sched_getcpu(struct thread *, struct sched_getcpu_args *);
#ifdef COMPAT_43
@ -3194,6 +3198,7 @@ int freebsd12_closefrom(struct thread *, struct freebsd12_closefrom_args *);
#define SYS_AUE_aio_writev AUE_AIO_WRITEV
#define SYS_AUE_aio_readv AUE_AIO_READV
#define SYS_AUE_fspacectl AUE_FSPACECTL
#define SYS_AUE_sched_getcpu AUE_NULL
#undef PAD_
#undef PADL_