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::342; helo=mail-wm1-x342.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (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 1DCD92194D3B9 for ; Thu, 20 Dec 2018 09:31:13 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id y139so2859386wmc.5 for ; Thu, 20 Dec 2018 09:31:12 -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 :mime-version:content-transfer-encoding; bh=DlyzOdpv8t2V5sBtarqN8CXzqn/b/085op3NZgR4gQM=; b=HZiHzt9eMTSSWFMafj9TkB0X4jnDjkWx1EAs9TJd0cPHC8Jpf93TxDkrcHSImCICI9 XG4I3FLgQnAmtkH8dxcL+TDFb4i2SpqypbFL7Or9sXV8hgbfCgK8KXNbtPmUsitJwhQ5 b2bj4aNicpNX28YhBaWarLy8ABeTujJMBGz8I= 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:mime-version:content-transfer-encoding; bh=DlyzOdpv8t2V5sBtarqN8CXzqn/b/085op3NZgR4gQM=; b=PcwVHXLzPaQj22n4tUHRSKPNnlD9GaxUplOdJ4p2vVmptdnsjLqO556g8nXkEW4v5x Pn/IyDQX4E4YXc/aySJ3j9lgTuqx8AG0bDndAfQWYMGSq4k1ludSpr4SY/mn48DvXxIx k7nqMlU+taMYfANonnSK7gKuWI8667Z0PL1w8fiUiTBFIJ5srvj+nSklq7DtAFKsTDj2 z/CfY0KDxcMmQzvHmaI6EOZRC1QhvycjrTDYeM5NabcuN5l2uLBo1ci70YEfeP0hzZsm hbLC5X5tSZaMFtd6qExHwLcEFOi3nbkwXKryo/ThjJAPKGZhd3KcLd65zDPtBeaB8H5l 4h9A== X-Gm-Message-State: AA+aEWYinR9Of28Ak1sknskHGV6jmOk2M7qcSUuOXFBgK9rfhOu9BTlA rtJji83WOuCk0R/MzfyMoYaDntKJo+8nYw== X-Google-Smtp-Source: AFSGD/V6IulOugkC86ml5VTmN0EK/1xHPECy2KT88i6lvIM1tbJW5VcC8WtpTQbcq6+uMxZS6+Ad7Q== X-Received: by 2002:a1c:128b:: with SMTP id 133mr12962614wms.22.1545327071308; Thu, 20 Dec 2018 09:31:11 -0800 (PST) Received: from localhost.localdomain (aputeaux-683-1-2-211.w90-86.abo.wanadoo.fr. [90.86.101.211]) by smtp.gmail.com with ESMTPSA id x12sm6826131wrt.20.2018.12.20.09.31.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 09:31:09 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, philmd@redhat.com, lersek@redhat.com, Ard Biesheuvel Date: Thu, 20 Dec 2018 18:31:02 +0100 Message-Id: <20181220173104.11481-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181220173104.11481-1-ard.biesheuvel@linaro.org> References: <20181220173104.11481-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [PATCH 2/4] 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: Thu, 20 Dec 2018 17:31:13 -0000 Content-Transfer-Encoding: 8bit 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 --- 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 @@ 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.19.2