[MULTITASKING] Processes

This commit is contained in:
thomas committed 2017-03-27 23:09:08 +02:00
1 parent 5e8fbcbb78
commit 5ca2b6994a
8 files changed
+177 -8

No files matched your search

+6 -1
View File
@@ -22,7 +22,10 @@ page_table *vmm_new_P4()
void vmm_set_P4(page_table *P4)
{
write_cr3((uint64_t)P4);
if(P4)
write_cr3((uint64_t)P4);
else
write_cr3(V2P(&BootP4));
}
void vmm_free_P4(page_table *P4)
@@ -145,6 +148,8 @@ registers_t *page_fault_handler(registers_t *r)
#ifndef NDEBUG
thread_t *th = get_current_thread();
(void)th;
process_t *proc = get_current_process();
(void)proc;
asm("page_fault_breakpoint:");
#endif
for(;;);