Re: 2.4.19rc2aa1 i_size atomic access

From: Andrea Arcangeli (andrea@suse.de)
Date: Wed Jul 24 2002 - 09:26:30 EST


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/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:16 EST