>Ralf> There isn't a portable way to get uncached memory. But
>Ralf> GFP_UNCACHED sounds good.
>
>On the m68k we have a kernel_set_cachemode() which does the job.
I looked at it, but I still prefer allocating uncachable space rather
than setting the cache mode afterwards. Are there cases where you want to
toggle the cache mode of a given range more than once ?
I prefer avoiding walking the page tables the way it's done in
kernel_set_cachemode. Adding the GPF_UNCACHED flag seems a lot more
maintainable to me, and requires really very few changes to implement.
But, of course, I may be wrong...
-- Perso. e-mail: <mailto:bh40@calva.net> Work e-mail: <mailto:benh@mipsys.com> BenH. Web : <http://calvaweb.calvacom.fr/bh40/>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/