Basic VM and other minor improvements.

Not complete, probably not fully debugged or optimized.
This commit is contained in:
Ben Gras
2008-11-19 12:26:10 +00:00
parent c888305e21
commit c078ec0331
273 changed files with 10814 additions and 4305 deletions

View File

@@ -31,14 +31,13 @@ register message *m_ptr; /* pointer to request message */
proc = proc_addr(proc_p);
phys_base= umap_local(proc, D, base, size);
if (!phys_base)
{
kprintf("do_mapdma: umap_local failed\n");
phys_base= umap_virtual(proc, D, base, size);
if (!phys_base)
{
kprintf("do_mapdma: umap_virtual failed\n");
return EFAULT;
}
m_ptr->CP_DST_ADDR = phys_base;
return OK;
}