Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jul 2002 10:22:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jul 2002 10:22:36 -0400 Received: from [195.223.140.120] ([195.223.140.120]:10571 "EHLO penguin.e-mind.com") by vger.kernel.org with ESMTP id ; Wed, 24 Jul 2002 10:22:35 -0400 Date: Wed, 24 Jul 2002 16:26:30 +0200 From: Andrea Arcangeli To: "Maciej W. Rozycki" Cc: Daniel McNeil , linux-kernel@vger.kernel.org Subject: Re: 2.4.19rc2aa1 i_size atomic access Message-ID: <20020724142630.GP1117@dualathlon.random> References: <20020723192052.GF1117@dualathlon.random> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i X-GnuPG-Key-URL: http://e-mind.com/~andrea/aa.gnupg.asc X-PGP-Key-URL: http://e-mind.com/~andrea/aa.asc Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 23 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/