TD3 II.2 Manage processes counter

This commit is contained in:
Yorick Barbanneau 2021-12-16 15:31:30 +01:00
parent 479d37133c
commit dcb11cf311
3 changed files with 24 additions and 2 deletions

View file

@ -125,7 +125,7 @@ ExceptionHandler (ExceptionType which)
case SC_Halt:
{
DEBUG ('s', "Shutdown, initiated by user program.\n");
interrupt->Powerdown ();
interrupt->Powerdown();
break;
}
#ifdef CHANGED
@ -133,9 +133,10 @@ ExceptionHandler (ExceptionType which)
{
// while (1)
// currentThread->Yield();
DEBUG('x',"Exit\n");
int ret = machine->ReadRegister(4);
printf("Exit code %d\n", ret);
interrupt->Powerdown();
// do_ThreadExit();
break;
}
case SC_PutChar: