TD2 II.2 Finish thread Gracefuly
This commit is contained in:
parent
615d121a76
commit
feff887fa0
2 changed files with 8 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue