| 343 | } |
| 344 | |
| 345 | void ProgramManager::activateProgramPage(PCB *program) |
| 346 | { |
| 347 | int paddr = PAGE_DIRECTORY; |
| 348 | |
| 349 | if (program->pageDirectoryAddress) |
| 350 | { |
| 351 | tss.esp0 = (int)program + PAGE_SIZE; |
| 352 | paddr = memoryManager.vaddr2paddr(program->pageDirectoryAddress); |
| 353 | } |
| 354 | |
| 355 | asm_update_cr3(paddr); |
| 356 | } |
| 357 | |
| 358 | int ProgramManager::fork() |
| 359 | { |
nothing calls this directly
no test coverage detected