[lkml]   [2004]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: problem with cache flush routine for G5?
Benjamin Herrenschmidt wrote:
> First of all, why do you need to flush the cache at all ?

In-house OS emulator. For some reason it wants to be able to flush the
cache. I don't know why.

> If you are talking about the cache flush in the 32 bits bootloaders,
> then yes, this seem to be broken, you should ask Tom Rini who
> maintain these things.
> The kernel proper definitely doesn't contain such a routine.

It did in 2.4, and we added a syscall to export it to userspace. Now
I'm supposed to figure out what to do for 2.6, and it appears that the
kernel version is gone and the one in boot is screwed.

The only remaining ppc version of flush_data_cache is used by
flush_instruction_cache in arc/ppc/boot/common/util.S

There is also another version of flush_instruction_cache implemented in

Here are the suspicious instances of flush_instruction_cache in

boot/prep/head.S: bl flush_instruction_cache
boot/simple/relocate.S: b flush_instruction_cache
boot/simple/relocate.S: b flush_instruction_cache
boot/simple/misc-embedded.c: flush_instruction_cache();

Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:01    [W:0.075 / U:9.976 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site