Helper to backtrace a user context
[akaros.git] / kern / arch / riscv / cpuinfo.c
index 2ca3e54..ba71bc1 100644 (file)
@@ -24,9 +24,9 @@ print_cpuinfo(void)
        cprintf("CPU Info: RISC-V %s\n", name);
 }
 
-void show_mapping(uintptr_t start, size_t size)
+#warning "convert pgdir* to pgdir_t"
+void show_mapping(pgdir_t *pt, uintptr_t start, size_t size)
 {
-  pde_t* pt = (pde_t*)KADDR(rcr3());
        pte_t* pte;
        uintptr_t i;
        page_t* page;