开发者

How to flush the whole instruction cache on powerpc?

I want to flush the whole instruction cache on a powerpc 750 (Ubuntu on Apple imac G5).

I tried to use this function de开发者_如何学Gofined in cacheflush.h:

flush_icache_range(unsigned long start, unsigned long stop)

For some values of 'start' and 'stop' arguments, the machine just hangs. If anybody knows the correct usage of this function or any other alternate way to flush icache, it would be great.


I was flushing instruction cache on effective addresses, whereas the correct way is to flush virtual address.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜