TD2 I.5 first working version of Thread

Add semaphore to PutChar and GetChar
This commit is contained in:
Yorick Barbanneau 2021-11-15 00:42:30 +01:00
parent c4a2d25163
commit 6bd3e1338f
8 changed files with 95 additions and 4 deletions

View file

@ -292,3 +292,12 @@ AddrSpace::RestoreState ()
machine->currentPageTable = pageTable;
machine->currentPageTableSize = numPages;
}
#ifdef CHANGED
int
AddrSpace::AllocateUserStack()
{
int memory = numPages * PageSize;
return memory - 256;
}
#endif