From 24e25d11c0460dfb39fade685375c0e58cbcb40e Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 26 Jun 2006 10:18:28 +0000 Subject: =?UTF-8?q?=E2=80=A2=09BaseMemoryLib:=20=09Modify=20some=20Aassert?= =?UTF-8?q?()s=20conditions=20to=20sync=20with=20MWG=200.56d=20=09Modify?= =?UTF-8?q?=20some=20defects=20in=20function=20header.=20=E2=80=A2=09PostC?= =?UTF-8?q?odeLib:=20Implement=20PeiDxePostCodeLibReportStatusCode.=20?= =?UTF-8?q?=E2=80=A2=09Misc=20Rename=20BaseDebugLibReportStatusCode=20to?= =?UTF-8?q?=20PeiDxeDebugLibReportStatusCode=20=09Remove=20tabs=20in=20all?= =?UTF-8?q?=20.c=20and=20.h=20files=20in=20MdePkg.=20=09Rename=20PeiServic?= =?UTF-8?q?esReinstallPpi()=20to=20PeiServicesReInstallPpi()=20=09Adjust?= =?UTF-8?q?=20some=20minor=20coding=20style=20in=20PeCoffLoaderGetEntryPoi?= =?UTF-8?q?nterLib()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@626 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c') diff --git a/MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c b/MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c index 4a3d615ce5..56dbe5d8be 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c +++ b/MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c @@ -26,24 +26,23 @@ #include "MemLibInternals.h" /** - Set Buffer to 0 for Size bytes. + Fills a target buffer with zeros, and returns the target buffer. This function fills Length bytes of Buffer with zeros, and returns Buffer. + If Length > 0 and Buffer is NULL, then ASSERT(). + If Length is greater than (MAX_ADDRESS – Buffer + 1), then ASSERT(). - If Buffer is NULL and Length > 0, then ASSERT(). - If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). + @param Buffer Pointer to the target buffer to fill with zeros. + @param Length Number of bytes in Buffer to fill with zeros. - @param Buffer Memory to set. - @param Size Number of bytes to set - - @return Buffer + @return Buffer. **/ VOID * EFIAPI ZeroMem ( - IN VOID *Buffer, - IN UINTN Length + OUT VOID *Buffer, + IN UINTN Length ) { ASSERT (!(Buffer == NULL && Length > 0)); -- cgit v1.2.3