From patchwork Tue Oct 8 16:47:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 281524 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id E0C612C00A7 for ; Wed, 9 Oct 2013 03:48:02 +1100 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1VTaS1-0002UY-RV; Tue, 08 Oct 2013 16:48:01 +0000 Received: from mail.skyhub.de ([78.46.96.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1VTaR5-0002QK-B8 for fwts-devel@lists.ubuntu.com; Tue, 08 Oct 2013 16:47:03 +0000 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1381250823; bh=Z6kwdne1Mkqcgm4SUwhGIQ6c5VM8/mU8iR104rQ8wos=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=APoFAgGGRS6sS/eyepYjbjYPHdEH4LglR35gH7 lB6CotV6lQGffMBr+XYxRxcVSNLcM7x8sPKg8bkB9q3KzuC+ka+8GlzQadYnCwtUCZI iu85h4IdJ9Iu52cSYvov4nL9/ylGi/PuCLHzO74/z37jJ3CUpY34KAm/QysSAYIN70= Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8bfNEYPZShQQ; Tue, 8 Oct 2013 18:47:02 +0200 (CEST) Received: from liondog.tnic (p54B7F6AC.dip0.t-ipconnect.de [84.183.246.172]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C258E1DA235; Tue, 8 Oct 2013 18:47:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1381250822; bh=Z6kwdne1Mkqcgm4SUwhGIQ6c5VM8/mU8iR104rQ8wos=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=EiGqv4/r1lxGknrA6Rjs2HjfxCQMihbEb6np5O PSOuks3Hq7T4ykjcxOMvM2Z16qknmqBC+c7ASC1ofwwIQUgI7XYKlhyCZMqlmAtTIPU /PqIwHzaZjsYjJ29b6Py/AdFuKmQkpEOtGE5FNDc8A80imvS3TLsAoheMhlUdFNsEk= Received: by liondog.tnic (Postfix, from userid 1000) id 0E6F1101B2E; Tue, 8 Oct 2013 18:47:02 +0200 (CEST) Date: Tue, 8 Oct 2013 18:47:02 +0200 From: Borislav Petkov To: X86 ML Subject: [PATCH 11/12] efi: Add an efi= kernel command line parameter Message-ID: <20131008164701.GC16793@pd.tnic> References: <1379602494-26684-1-git-send-email-bp@alien8.de> <20131008164551.GB16793@pd.tnic> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131008164551.GB16793@pd.tnic> User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Tue, 08 Oct 2013 16:48:00 +0000 Cc: linux-efi@vger.kernel.org, Matthew Garrett , LKML , James Bottomley , fwts-devel@lists.ubuntu.com, "H. Peter Anvin" , Borislav Petkov , Dave Young , Vivek Goyal X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Borislav Petkov ... for passing miscellaneous options and chicken bits from the command line. Signed-off-by: Borislav Petkov --- arch/x86/platform/efi/efi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 538c1e6b7b2c..16996aba5012 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -1113,3 +1113,12 @@ efi_status_t efi_query_variable_store(u32 attributes, unsigned long size) return EFI_SUCCESS; } EXPORT_SYMBOL_GPL(efi_query_variable_store); + +static int __init parse_efi_cmdline(char *str) +{ + if (*str == '=') + str++; + + return 0; +} +early_param("efi", parse_efi_cmdline);