Skip to content
Snippets Groups Projects
Commit 1ac70e6c authored by dtc's avatar dtc
Browse files

Patch to flush_icache by Casper Dik.

parent 686f8394
No related branches found
No related tags found
No related merge requests found
...@@ -290,9 +290,14 @@ _function_end_breakpoint_end: ...@@ -290,9 +290,14 @@ _function_end_breakpoint_end:
.global _flush_icache .global _flush_icache
FUNCDEF(_flush_icache) FUNCDEF(_flush_icache)
_flush_icache: _flush_icache:
iflush %i0 ! flush instruction cache add %o0,%o1,%o2
1: iflush %o0 ! flush instruction cache
add %o0,8,%o0
cmp %o0,%o2
blt 1b
nop
retl ! return from leaf routine retl ! return from leaf routine
nop nop
SET_SIZE(_flush_icache) SET_SIZE(_flush_icache)
#ifndef SOLARIS #ifndef SOLARIS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment