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