Added private_data structure in process

Conflicts:
	executer/user/mcexec.c
	kernel/include/process.h
	kernel/process.c
This commit is contained in:
Aram Santogidis
2017-07-25 15:45:25 +09:00
committed by Balazs Gerofi
parent e36abe57e7
commit 8a1d756cb1
5 changed files with 31 additions and 2 deletions

View File

@ -3320,7 +3320,6 @@ int main_loop(struct thread_data_s *my_thread)
memset(&w, '\0', sizeof w);
w.cpu = cpu;
w.pid = getpid();
while (((ret = ioctl(fd, MCEXEC_UP_WAIT_SYSCALL, (unsigned long)&w)) == 0) || (ret == -1 && errno == EINTR)) {
if (ret) {
@ -4201,6 +4200,7 @@ return_execve2:
}
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
break;
case 801: {// swapout
#ifdef ENABLE_QLMPI
int rc;
@ -4390,6 +4390,11 @@ return_linux_spawn:
break;
}
case __NR_writev:
ret = do_generic_syscall(&w);
do_syscall_return(fd, cpu, ret, 0, 0, 0, 0);
break;
default:
if (archdep_syscall(&w, &ret)) {
ret = do_generic_syscall(&w);