Re: Cache incoherencies [example code]

Philip Blundell (Philip.Blundell@pobox.com)
Mon, 30 Aug 1999 13:19:06 +0100


>datas are not correctly read by the chip, so I beleive this is because
>virt_to_bus doesn't work with vmalloc addresses, am I wrong ?

That's true, it doesn't. To get the physical address you need to walk
pagetables as someone (either Roger or Ralf I think) pointed out. I think
there is code in ptrace.c that shows how this is done but it's not really
recommended practice.

So, maybe the vmalloc idea wasn't such a good one after all and some
completely new routine is needed.

p.

-
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/