From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: ALg8bN5Ra/s5oSHKxOvLwFXR3ikbH+fJHhYBHQcSCjEcbvjnd4aqtHiIiv9OrJkRuB3weieVrxkvYQ== 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 Cc: leif.lindholm@linaro.org, lersek@redhat.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Tue, 15 Jan 2019 08:23:53 -0000 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(-) 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 -- 2.17.1