From patchwork Tue Jan 15 08:23:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155639 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4610437jaa; Tue, 15 Jan 2019 00:23:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN5IJ4D1nhd7hb4YvOBKs8gFyEaLXkVVK7DnjRzZEFDTPQvP+WPPcVoCuNWfJaz0OmGeCs9t X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr2865294plb.192.1547540638385; Tue, 15 Jan 2019 00:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547540638; cv=none; d=google.com; s=arc-20160816; b=VK8mlgvlrURmJpSlA4NsFLTihSsmRlSyGenPIItdsUxoGAF9JcmRNJAMkEqyTxY8X0 S/IOYylP+9jrYo420QZ+nhoE7acqR3mfVTI6+Thcw5GqLjAduMQknkvMdBYzZt1ADNjw OamCLgtqeyZGAgKgH2qjes/3cht3pZpjIEKVfNxcGjOWlyJbjzHmf01rUYfIWqV9OHD7 FhmVPnfOatiMHLZKkQ9MXsGkTz14BHvmYoo5xfmlf8cGi8heOOV70+n0HoFVUxJCVnPh xSJuUOYYCb7Aw5DVKF/3JEiQ3Z2EYXMcGmcTfOHWu+3SC9HXCt09UkALLNrt/819FI/+ 2eFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=f9bGeibz9kHBYqO16j5Ko8xldx4UckNull/qeHUidAE=; b=q4VQN5WcelB69hGMtD1I44paOwGl4Nq40mSCxWLHDB9GXMX4Mvhd1eJUMrVUrD2tEK E9SusiB3CiyYTZsd463jOC1fwFD5a2tABRzVKJs0+WXRcwXuShh6ebg2TyJFLYI2fntR twM5DVf2nntlRBmskwelEbCb1gd01Iaev+JHoS6xxbKqOmHzk/ZkXK4A6UG0sGmfKBih Glxf4wn8694DGKU2hDEAaVl1F70d64Pn9JWmk6peSxFZTP5Hz8ZsFlPZZxYFbFjsicpD 31VCffmYL4X49lP9x5seBsT4uWnh7QTxS2RK5ekt3x+y3x19J48jjfp850/sXLb6N/O0 3mOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=diKWNVIA; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id c191si2765665pfg.72.2019.01.15.00.23.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 00:23:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=diKWNVIA; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4C8FA211B63F0; Tue, 15 Jan 2019 00:23:55 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::343; helo=mail-wm1-x343.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2F3A62194D3B9 for ; Tue, 15 Jan 2019 00:23:53 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id m22so2223449wml.3 for ; Tue, 15 Jan 2019 00:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z4vSWhqIVcVjyNodCJc2oMV0u1Q1ngbvjudj+Z1VlaM=; b=diKWNVIAMgMzgmORsqh189i3iSPR1+c8e2672+lTjTwJNTxr9E9FQ+yULoJZcdRXW3 4gFvTvyIqVDi6idDImLr6WzFcXmJFnHHz3qc73+hDPpDLGoNcoYxgg8AyFYqB72G9baq KD/xbjbIZwB9PRetX8T+ycQiC1Igq9ocojHH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Z4vSWhqIVcVjyNodCJc2oMV0u1Q1ngbvjudj+Z1VlaM=; b=D9MbYJazxtYbGAmH86p/JDfXCZ1Qxnwa66pcIWGhJMOG8WWheSkEAHZeP1O9Dh6nZR vS4snHo/qMLwRxzNlQl5rTFqr5I6oJMv2pStYofQdI9CVat/SNMAfADylaHUJBr01StA P+XNOc9qWtvBNnUrkutnM1x6qj+tuu0DJ4+k146Sr/A1gU09nZehHNnpr9azlpvqbVyc q5PPFv3asi2CLpsBD/S/joD/ZWTyh6AewRq0oBi0Njz0MpOps6H1GLfAeaqomq7dbb56 PK9b5mYKSzJnADAyxVGkxHg+0cVgl+YkNA3k10hRM/c/GFlkpYoKa284kMpMnA4WMaeQ KgEQ== X-Gm-Message-State: AJcUukfAf+A/XgskNQO+A2CPPBrAG13wJo2urEjkq40ZsXmFa7Lq+YQa ks940QNMXzkyBszE0JrZ2dyHiWU9UOf0+g== X-Received: by 2002:a1c:dc02:: with SMTP id t2mr2236923wmg.78.1547540631458; Tue, 15 Jan 2019 00:23:51 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:c8d1:b905:1bdd:adb6]) by smtp.gmail.com with ESMTPSA id 67sm120697983wra.37.2019.01.15.00.23.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 00:23:50 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 15 Jan 2019 09:23:42 +0100 Message-Id: <20190115082345.3711-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190115082345.3711-1-ard.biesheuvel@linaro.org> References: <20190115082345.3711-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v2 2/5] ArmPkg/DefaultExceptionHandlerLib: declare the permitted usage context X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Declare that this library is only usable in the context of DXE core or a DXE driver. Set the MODULE_TYPE to BASE: this only affects the prototype of the constructor (if present) but doesn't actually restrict the usage context otherwise. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf b/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf index f5421b1240a1..7609f82d89a1 100644 --- a/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf +++ b/ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf @@ -17,9 +17,9 @@ [Defines] INF_VERSION = 0x00010005 BASE_NAME = DefaultExceptionHandlerLib FILE_GUID = EACDB354-DF1A-4AF9-A171-499737ED818F - MODULE_TYPE = UEFI_DRIVER + MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = DefaultExceptionHandlerLib + LIBRARY_CLASS = DefaultExceptionHandlerLib|DXE_CORE DXE_DRIVER [Sources.common] DefaultExceptionHandlerUefi.c