delete SYSCALL_DECLARE(uname)
This commit is contained in:
@ -630,16 +630,6 @@ int main_loop(int fd, int cpu, pthread_mutex_t *lock)
|
||||
pthread_mutex_unlock(lock);
|
||||
return w.sr.args[0];
|
||||
|
||||
case __NR_uname:
|
||||
ret = uname((void *)dma_buf);
|
||||
if (ret == -1) {
|
||||
ret = -errno;
|
||||
}
|
||||
do_syscall_return(fd,
|
||||
cpu, ret, 1, (unsigned long)dma_buf, w.sr.args[0],
|
||||
sizeof(struct utsname));
|
||||
break;
|
||||
|
||||
case __NR_getcwd: {
|
||||
// note that return type is different between glibc-getcwd and sys_getcwd
|
||||
char* c = getcwd((void *)dma_buf, w.sr.args[1]);
|
||||
|
||||
@ -450,24 +450,6 @@ SYSCALL_DECLARE(getpid)
|
||||
return cpu_local_var(current)->pid;
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(uname)
|
||||
{
|
||||
SYSCALL_HEADER;
|
||||
unsigned long phys;
|
||||
int ret;
|
||||
|
||||
if (ihk_mc_pt_virt_to_phys(cpu_local_var(current)->vm->page_table,
|
||||
(void *)ihk_mc_syscall_arg0(ctx), &phys)) {
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
request.number = n;
|
||||
request.args[0] = phys;
|
||||
|
||||
ret = do_syscall(&request, ctx);
|
||||
|
||||
return ret;
|
||||
}
|
||||
// asmlinkage long sys_getcwd(char __user *buf, unsigned long size);
|
||||
SYSCALL_DECLARE(getcwd)
|
||||
{
|
||||
@ -975,7 +957,6 @@ static long (*syscall_table[])(int, ihk_mc_user_context_t *) = {
|
||||
[39] = sys_getpid,
|
||||
[56] = sys_clone,
|
||||
[60] = sys_exit,
|
||||
[63] = sys_uname,
|
||||
[79] = sys_getcwd,
|
||||
[89] = sys_readlink,
|
||||
[96] = sys_gettimeofday,
|
||||
|
||||
Reference in New Issue
Block a user