From nobody Mon Feb 9 12:15:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+84806+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84806+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1639489321; cv=none; d=zohomail.com; s=zohoarc; b=kakk9QGpVJvhssiZGpc/fWc6o8844+7N6SLQkT1/nTYpo9lVC7l0oJUhzTfMDBc0gDUR9QvHmZPrWr4OCHhclqC4OJ93LufGcYVls+0BK3hi1NWTKUt4DdfqG5y7xjWIKx87M7xErUUww1bGLWQBVTtbkrpzyRrpWJH/glex9zw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639489321; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=p04sxyR426c4NK2usoAtbyFdpg+5SRceV2J7idecWJY=; b=Rq4jw6/mhHfE6Gv1aSfpJdBrgYvN41/58y6T1vnGN7DDBdpC0GJe76zMv5QRA7dXmjREpw8IDzQdt2c1gaHRz+WH356LpXVjBB5FIunUeslvDiRv5pAPhmwkTVyYLPAqnbzuKcwvxb21cWf6hiGZl7IYvQZ17vXgAlIU4m//Dr4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84806+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 16394893218292.3431124185727867; Tue, 14 Dec 2021 05:42:01 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id OtYeYY1788612xU3nW1eU12A; Tue, 14 Dec 2021 05:42:01 -0800 X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web08.25739.1639489318669943344 for ; Tue, 14 Dec 2021 05:42:00 -0800 X-IronPort-AV: E=McAfee;i="6200,9189,10197"; a="218993596" X-IronPort-AV: E=Sophos;i="5.88,205,1635231600"; d="scan'208";a="218993596" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2021 05:41:54 -0800 X-IronPort-AV: E=Sophos;i="5.88,205,1635231600"; d="scan'208";a="465094063" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.255.30.115]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2021 05:41:51 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Michael D Kinney , Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky , Gerd Hoffmann , Leif Lindholm , Ard Biesheuvel , Abner Chang , Daniel Schaefer Subject: [edk2-devel] [PATCH 03/10] EmbeddedPkg/MemoryAllocationLib: Add null stub for AllocateCopyPool Date: Tue, 14 Dec 2021 21:41:19 +0800 Message-Id: <20211214134126.869-4-min.m.xu@intel.com> In-Reply-To: <20211214134126.869-1-min.m.xu@intel.com> References: <20211214134126.869-1-min.m.xu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,min.m.xu@intel.com X-Gm-Message-State: ZfFUORJDY5Pvve9ijIj3ru4lx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639489321; bh=8/f/c63Mojf3UUNhZckJurvevU0eoGx7x6M9of3rcdA=; h=Cc:Date:From:Reply-To:Subject:To; b=FFPvHUkkTX+7/pOBxo60QxQzAfuoA7MoIPT73e9n1GTx0jahh8aJjPkxdMNg9se9puN 44uSYCap1Hx9ZK2vpmCv8sv0EYDpfetsOjNyhZPNYIxRXSIHGvBu9a5Sth62WyeIHJEgF Yy+Vt9MVV+1yqXa4AM6xmZ2p6Sx/pQ2MjKQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639489323661100009 Content-Type: text/plain; charset="utf-8" RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3429 This function is a null stub to make the build success. Cc: Michael D Kinney Cc: Brijesh Singh Cc: Erdem Aktas Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Cc: Gerd Hoffmann Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Abner Chang Cc: Daniel Schaefer Signed-off-by: Min Xu --- .../MemoryAllocationLib.c | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationL= ib.c b/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c index 78f8da5e9527..ddc27150c680 100644 --- a/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c +++ b/EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c @@ -220,6 +220,34 @@ AllocateZeroPool ( return Buffer; } =20 +/** + Copies a buffer to an allocated buffer of type EfiBootServicesData. + + Allocates the number bytes specified by AllocationSize of type EfiBootSe= rvicesData, copies + AllocationSize bytes from Buffer to the newly allocated buffer, and retu= rns a pointer to the + allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size= is returned. If there + is not enough memory remaining to satisfy the request, then NULL is retu= rned. + + If Buffer is NULL, then ASSERT(). + If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSER= T(). + + @param AllocationSize The number of bytes to allocate and zero. + @param Buffer The buffer to copy to the allocated buffer. + + @return A pointer to the allocated buffer or NULL if allocation fails. + +**/ +VOID * +EFIAPI +AllocateCopyPool ( + IN UINTN AllocationSize, + IN CONST VOID *Buffer + ) +{ + ASSERT (FALSE); + return NULL; +} + /** Frees a buffer that was previously allocated with one of the pool alloca= tion functions in the Memory Allocation Library. --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84806): https://edk2.groups.io/g/devel/message/84806 Mute This Topic: https://groups.io/mt/87720795/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-