Re: [PATCH] flush icache early when loading module

From: Rusty Russell
Date: Wed Aug 03 2005 - 20:31:47 EST


On Thu, 2005-08-04 at 02:34 +0200, Thomas Koeller wrote:
> The patch below, created against linux-2.6.12.3, changes the sequence of
> operations performed during module loading to flush the instruction cache
> before module parameters are processed. If a module has parameters of an
> unusual type that cannot be handled using the standard accessor functions
> param_set_xxx and param_get_xxx, it has to to provide a set of accessor
> functions for this type. This requires module code to be executed during
> parameter processing, which is of course only possible after the icache
> has been flushed.
>
> Signed-off-by: Thomas Koeller <thomas@xxxxxxxxxxxxxxxxxx>

Yes, well caught.

Rusty.
--
A bad analogy is like a leaky screwdriver -- Richard Braakman

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