Re: A simple question about readw, readw and the like

From: David S. Miller (davem@redhat.com)
Date: Thu Jul 27 2000 - 17:38:37 EST


   Date: Thu, 27 Jul 2000 15:12:54 +0200
   From: Jamie Lokier <lk@tantalophile.demon.co.uk>

   Has anyone considered offsetting the ioremap() return address and
   subtracting that offset in readl() et al., to catch bogus drivers
   that dereference directly?

   I'd guess most drivers are tested only on x86 -- this is one way to
   check that they're getting at least one portability issue right.

It would certainly be a good way to spot bugs of this nature, sure.

Later,
David S. Miller
davem@redhat.com

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



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:25 EST