TD3:II.1 First working version of ForkExec

But need to implement Process exit...
This commit is contained in:
Yorick Barbanneau 2021-12-08 01:30:52 +01:00
parent f7eca8c6ac
commit 07853cbcd3
8 changed files with 61 additions and 4 deletions

View file

@ -226,6 +226,14 @@ ExceptionHandler (ExceptionType which)
do_ThreadExit();
break;
}
case SC_ForkExec:
{
int s = machine->ReadRegister(4);
char * command = new char[MAX_STRING_SIZE];
int size = copyStringFromMachine(s, command, MAX_STRING_SIZE);
do_ForkExec(command);
break;
}
#endif
default:
{