From patchwork Thu Dec 20 17:31:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 154350 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6456694ljp; Thu, 20 Dec 2018 09:31:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/XXamoZys1UtwuJEPeIGuDcKsB+BOjBuWBmJL//lJjCMWcgHwRSzkT6rnB5xPITKYt8Hzt+ X-Received: by 2002:a17:902:bd0b:: with SMTP id p11mr25154401pls.259.1545327077466; Thu, 20 Dec 2018 09:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545327077; cv=none; d=google.com; s=arc-20160816; b=n3ClrdXQ1CdJcI5NrR513uaI6bgnc6TCBK/fej0bGmFiiR9riAajaHW+3Xnr60WylB 5iSkl/GRgvF3CvpnoQPomPAtdxf/aiLvZb8V8piWXEifvfczHAhFKqG7LM7i7iEQKpLr iFK698ZuCSxRwR0loxgZwFDGaLJd8sySFbntFnngwqQJLYo8x0TStCkqDXeI+utqIvy+ nR3WNDk3axUih2OQidiKDaZcgtJCd1qc+x/5Cy/sxl6Qh8olHE+1DakAON5qRckA6yAV fVN2Nc6TImyfcwMWN4snxON2GST/rXi0SBKs21sO9BZMJhqxDby0xzqnzbSRJ8Nip0Nk u6cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=OrhJKy3BjYd7bKTC6wrLs2+fPDgc23LLrmkwe4FMFRY=; b=rehsB91HPFG8+HW/vRUN/DckT7WOHyQ4TmqsF1iBF/JMW8yf+8G6H3+B+sJKvLJuET 1OgQzVjuOWBC8t/0kDb9IXv6RS+g1KJYjDCcqGPfjx+aqWeK1OI4IQN5C2GnetA+IGg9 KFyzu4CynuKLo7JPUZyLBZdUoIlThfIXncVhuP5dKgOPAgVJDfomZQJHyZNNN5SV+9CK RO3jt98TATyhkzrdqvM0amJfyLFnEQSEP5tJT/aHkcEI9jh8AGLJEVUyPt+bCcPhG7BI /SAnzQsIl949R/IWarOBWMKc6j09vpmjVBwN31Uu4DxxZlE9WyWVY19H7G4durP64kIe Q/DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HZiHzt9e; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id a6si19611601pfa.227.2018.12.20.09.31.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 09:31:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HZiHzt9e; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 3310D2194D3B9; Thu, 20 Dec 2018 09:31:14 -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::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-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 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: [edk2] [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: , Cc: lersek@redhat.com 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 --- ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.19.2 _______________________________________________ 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 @@ 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