Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100Ab1DEC3t (ORCPT ); Mon, 4 Apr 2011 22:29:49 -0400 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:56586 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751799Ab1DEC3s (ORCPT ); Mon, 4 Apr 2011 22:29:48 -0400 MIME-Version: 1.0 In-Reply-To: <4D981EAB.8070209@codeaurora.org> References: <1301602523-9906-1-git-send-email-omar.ramirez@ti.com> <4D959058.7010606@codeaurora.org> <4D981EAB.8070209@codeaurora.org> Date: Mon, 4 Apr 2011 21:29:45 -0500 Message-ID: Subject: Re: [PATCH] ARM: BUG() dies silently From: "Ramirez Luna, Omar" To: Simon Glass , Stephen Boyd Cc: Russell King , lk , lak Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1750 Lines: 50 Hi Simon, Stephen, On Sun, Apr 3, 2011 at 2:15 AM, Stephen Boyd wrote: > (Please stop top posting) > > On 4/1/2011 3:29 PM, Simon Glass wrote: >> Hi Stephen, >> >> Sorry for the confusion, but in fact I was talking about the patch to >> make ARM use the generic bug handling via an undef instruction instead >> of calling ______bug() or writing to memory address 0. Please see >> here: >> >> http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=6808/1 > > Yes I've seen your patch (and even posted comments on it which have not > been responded to). > > Correct me if I'm wrong, but that patch with CONFIG_BUG=n would lead to > the same error that Omar is seeing because the code only modifies the > bug infrastructure when CONFIG_BUG=y. I am using CONFIG_BUG=y, however I don't have CONFIG_DEBUG_BUGVERBOSE and hence I fall into the part which doesn't print the file and the line where the BUG was found. With Simon's patch if my .config had: CONFIG_BUG=y CONFIG_GENERIC_BUG is not set CONFIG_DEBUG_BUGVERBOSE is not set I would fall into the same BUG definition that is causing issues: #define BUG() do { *(int *)0 = 0; } while (1) OTOH, is not like "Use generic BUG() handler" gives the choice of removing GENERIC_BUG given that it is not prompted in menuconfig and auto selected, if this is the intention is there any reason to keep the #else part of /* not CONFIG_GENERIC_BUG */? there is no way we can use it with this patch, right? Regards, Omar -- 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/