TD2 I.6+ Implement thread counter

This commit is contained in:
Yorick Barbanneau 2021-11-16 21:51:00 +01:00
parent 1a97a8aef5
commit 615d121a76
4 changed files with 26 additions and 9 deletions

View file

@ -128,6 +128,11 @@ AddrSpace::AddrSpace (OpenFile * executable)
pageTable[0].valid = FALSE; // Catch NULL dereference
#ifdef CHANGED
DEBUG('x', "Initialise thread counter\n");
Threads = 1;
#endif //CHANGED
AddrSpaceList.Append(this);
}