Re: 2.4.19rc2aa1 i_size atomic access

Andrea Arcangeli (andrea@suse.de)
Wed, 24 Jul 2002 16:26:30 +0200


On Wed, Jul 24, 2002 at 04:19:41PM +0200, Maciej W. Rozycki wrote:
> I meant something explicit like that:
>
> #ifdef CONFIG_X86_CMPXCHG8B
> if (!cpu_has_cx8)
> panic("Kernel compiled for Pentium+, requires CMPXCHG8B
> feature!");
> #endif
>
> An oops would be quite an obscure response for a configuration error. As

I'm not sure if we catch all the config errors at runtime anyways, and
the oops is simple enough to decode (the eip will point to the
cmpxchg8b), but ok, the panic is trivial enough that it worth it.

as for the config option I just added it to close the 486+SMP case.

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