lkml.org 
[lkml]   [2004]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: problem with cache flush routine for G5?
Benjamin Herrenschmidt wrote:

> In fact, none of the cache flush code is
> relying on supervisor mode, you don't need to add a syscall for
> that, just copy the code you need in userland.

That's useful information.

> That's wrong. You should flush the cache over the range
> where you need it flushed.

Yeah, I know. I'm not sure why they want this.

> Also, there are very few reasons
> why one would want to flush the dcache, so it would be interesting
> to know what you are really trying to do.

I'll look into it further and see what I can find out.

Assuming that I really did want to flush the whole cache, how would I go
about doing that from userspace? Do it like the loop in
arch/ppc/boot/common/util.S? How would this interact with virtual
addresses? Would I need to mmap an appropriately sized area of kernel
memory to get contiguous memory? The app is running as root, so
permissions are not an issue.

Thanks for your help,

Chris




--
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: cfriesen@nortelnetworks.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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