Le Wed, 26 Dec 2007 14:22:40 +0530, "Adil Mujeeb" <[EMAIL PROTECTED]> a écrit :
> #define flush_dcache_page(page) do { } while (0)
> in file include/asm-i386/cacheflush.h
>
> Does it solve any purpose?
Yes, but not for x86. Have a look at
http://lxr.free-electrons.com/source/arch/arm/mm/nommu.c#059 for an
exemple of architecture where flush_dcache_page() is not empty. And
have a look at http://lxr.free-electrons.com/ident?i=flush_dcache_page
to see all implementations of flush_dcache_page() for the different
architectures.
flush_dcache_page() is documented at:
http://lxr.free-electrons.com/source/Documentation/cachetlb.txt#308
It says:
«
If D-cache aliasing is not an issue, this routine may
simply be defined as a nop on that architecture.
»
On x86, D-cache aliasing is not an issue, that's why that operation is
empty.
Sincerly,
Thomas
--
Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org
Jabber, [EMAIL PROTECTED]
Toulibre, http://www.toulibre.org - APRIL, http://www.april.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7
signature.asc
Description: PGP signature
