Igor Kovalenko | 27 Sep 2008 19:50
Picon

[PATCH] sparc64 add mmu translate and unmap methods

Hi!

This patch enables mmu methonds "translate" and "unmap" for sparc64.

Helper function spitfire_translate walks through dtlb entries and
performs phys to virt translation. Two other helpers itlb_demap and
dtlb_demap perform actual tlb entry demapping. It is then easy to
implement unmap_pages() which is the reverse of map_pages(), and
enable mmu_unmap as the result.

I tested these changes to work with qemu-system-sparc64 loading gentoo
2008.0 iso image.
qemu is currently lacking spitfire demap ASI support which I'll post
there shortly.

Please apply.

--

-- 
Kind regards,
Igor V. Kovalenko
Attachment (qemu-sparc64-mmu-functions.patch): application/octet-stream, 3219 bytes
--
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you

Gmane