TD2 II.2 Finish thread Gracefuly

This commit is contained in:
Yorick Barbanneau 2021-11-16 22:40:34 +01:00
parent 615d121a76
commit feff887fa0
2 changed files with 8 additions and 3 deletions

View file

@ -131,8 +131,8 @@ ExceptionHandler (ExceptionType which)
#ifdef CHANGED
case SC_Exit:
{
while (1)
currentThread->Yield();
// while (1)
// currentThread->Yield();
int ret = machine->ReadRegister(4);
printf("Exit code %d\n", ret);
interrupt->Powerdown();