| 328 | } |
| 329 | |
| 330 | void ProgramManager::activateProgramPage(PCB *program) |
| 331 | { |
| 332 | int paddr = PAGE_DIRECTORY; |
| 333 | |
| 334 | if (program->pageDirectoryAddress) |
| 335 | { |
| 336 | tss.esp0 = (int)program + PAGE_SIZE; |
| 337 | paddr = memoryManager.vaddr2paddr(program->pageDirectoryAddress); |
| 338 | } |
| 339 | |
| 340 | asm_update_cr3(paddr); |
| 341 | } |
| 342 | |
| 343 | int ProgramManager::fork() |
| 344 | { |
nothing calls this directly
no test coverage detected