From nobody Fri Nov 1 16:30:03 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1513927426710199.65480376812786; Thu, 21 Dec 2017 23:23:46 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EEB4E222CB319; Thu, 21 Dec 2017 23:18:55 -0800 (PST) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 EE8FA222CB312 for ; Thu, 21 Dec 2017 23:18:52 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id y21so27131172wrc.1 for ; Thu, 21 Dec 2017 23:23:42 -0800 (PST) Received: from localhost.localdomain ([2a02:908:5a9:8400:5ec8:3210:9b68:c91c]) by smtp.gmail.com with ESMTPSA id m68sm16070965wmi.28.2017.12.21.23.23.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 23:23:39 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=sigmaepsilon92@gmail.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e4itJFkUKDO7/N/qBU9qW2h3GYAS0682pi/QJN0kaJY=; b=lCbdipkd2RJnt1CEUTVdRVo2ePIroSjNBzWW0QqwYnP6IXSGsFBw26WCYAMrsv2kEL I+dbWwGWRCmA4XpyiKu1jkKHj/TethmTxa5gmD+AcqWVD7tbpO1If/fAbRXuvr6ykkuP 5FtsXP8lLK1lU/bnu1tcSF25a5Qg/ABXxl52RS90PdevpbseC2vL5rSr/RTrCzjjJMRN +wlyFmjT9RMjq5+wD+7z3/DvunQ3AhWpriQr8F3p4wbA3bwfZdPlk/IN6hKSlfK8+CU3 I0dlcXGSfcQRDTi8FHHQoG5kkJQ48ELVn6R8WWpSHzeN6oDelwP1Ul6ELb5ON/ejdxdx auFQ== 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=e4itJFkUKDO7/N/qBU9qW2h3GYAS0682pi/QJN0kaJY=; b=gzl+7tTG1nLSMo5tO2xigQlTD2EwHNq305v1jwMSs8LSrYUuTvh+nCco5eHPScejsH lq8ve9MNOU6TZ4XM281tHaKnp/IqShCJKmHVnILJ2wXv/JUTAGQxE9o+PpQUr23cxumC SLynB/Zz1xbUHCGfTD0vHnsSGVPYSuq58OKRKVY77yuxReYHqwdJ7kfAYFWfXrBwPQ/H vldSVqnKIn1ZaEWD2y1doo0CYeV6L6y1D/WtxiZfcKqMX5Gqb04U672duxfLwPVg5Hi7 4IsZ7HdxKWhQ5W83WyssoegDmc99M9qON/HToyzBELBmEhcp1QR8G6kUYUyv7F6RyV6J DVKQ== X-Gm-Message-State: AKGB3mIb33kuhQZdzA1+49ls5cLubVkMKMi3qfhcEi52ngVcMOsTmGxz I7HVH5V1tbyTwP1ZBaz8s3+kGIQT X-Google-Smtp-Source: ACJfBoshpA3qLOrOvWY9Cbc50FLngT1Eu5ZpFz1mUfwDQkfFLf6NF40criSzaFCp0hjeV1jZXhFRMA== X-Received: by 10.223.178.163 with SMTP id g32mr13668803wrd.129.1513927421018; Thu, 21 Dec 2017 23:23:41 -0800 (PST) From: M1cha To: edk2-devel@lists.01.org Date: Fri, 22 Dec 2017 08:23:34 +0100 Message-Id: <20171222072336.23504-2-sigmaepsilon92@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171222072336.23504-1-sigmaepsilon92@gmail.com> References: <20171222072336.23504-1-sigmaepsilon92@gmail.com> Subject: [edk2] [PATCH 1/3] MdePkg: add RETURNS_TWICE attribute X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael D Kinney , Liming Gao , Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael Zimmermann --- MdePkg/Include/Base.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 22ab5d3715fb..c863de407418 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -218,6 +218,16 @@ VERIFY_SIZE_OF (__VERIFY_UINT32_ENUM_SIZE, 4); #endif #endif =20 +#ifndef RETURNS_TWICE + #if defined (__GNUC__) || defined (__clang__) + #define RETURNS_TWICE __attribute__((returns_twice)) + #elif defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC) + #define RETURNS_TWICE + #else + #define RETURNS_TWICE + #endif +#endif + // // For symbol name in assembly code, an extra "_" is sometimes necessary // --=20 2.15.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel