Added icache flushing
authorAndrew Waterman <waterman@ubuntu.(none)>
Sat, 27 Mar 2010 08:38:17 +0000 (01:38 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:38 +0000 (17:35 -0700)
commitcb6de231995bd8a9a3fa8bfa4f5b09ee8ee0f3f6
tree4842fa7d40e77b6b5d69cc8e9fad1625f7834da0
parent6cdfd489eae603c3222d0719ac2e272be2cbce72
Added icache flushing

Some ISAs (cough) require icache flushes after code has been
self-modified, e.g. after faulting in a new page.  The lack
of this support caused the RAMP HW to crash.  I've added an
arch-specific "icache_flush_page" primitive; it's a nop on
x86, and on SPARC it flushes the I$/D$.
kern/arch/i686/arch.h
kern/arch/sparc/arch.h
kern/arch/sparc/trap.c
kern/arch/sparc/trap.h
kern/arch/sparc/trap_entry.S
kern/include/mm.h
kern/src/mm.c