diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index 8d3c45b6..78b1473f 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -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]); diff --git a/kernel/syscall.c b/kernel/syscall.c index 0a91bddf..a95a0a4d 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -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,