Author: mcayland
Date: Mon Aug 19 14:57:56 2013
New Revision: 1218
URL: http://tracker.coreboot.org/trac/openbios/changeset/1218
Log:
SPARC32: add implementation of ofmem_arch_unmap_pages()
Add a simple TLB flush to handle the case where a virtual address is
reallocated by OFMEM and now points to a different physical address.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland(a)ilande.co.uk>
Modified:
trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c
Modified: trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c
==============================================================================
--- trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c Mon Aug 19 09:40:38 2013 (r1217)
+++ trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c Mon Aug 19 14:57:56 2013 (r1218)
@@ -142,7 +142,8 @@
/* Unmap a set of pages */
void ofmem_arch_unmap_pages(ucell virt, ucell size)
{
- /* Currently do nothing */
+ /* OFMEM re-maps the pages for us, so just ensure the TLB is in sync */
+ srmmu_flush_whole_tlb();
}
/* Map a set of pages */