diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-24 05:55:41 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-24 05:55:41 +0000 |
commit | e43e4b3e8cb381cffa146ac8c0f329bbb4c4b593 (patch) | |
tree | c9a0a97fc0ba22542e50e8046c4c73ae742bb138 /MdePkg/Library/UefiPalLib | |
parent | 519f076a478a7da9ff4b9d5327a993b1fc2968e8 (diff) | |
download | edk2-platforms-e43e4b3e8cb381cffa146ac8c0f329bbb4c4b593.tar.xz |
Refine new library instances according to review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6692 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiPalLib')
-rw-r--r-- | MdePkg/Library/UefiPalLib/UefiPalLib.c | 21 | ||||
-rw-r--r-- | MdePkg/Library/UefiPalLib/UefiPalLib.inf | 10 |
2 files changed, 16 insertions, 15 deletions
diff --git a/MdePkg/Library/UefiPalLib/UefiPalLib.c b/MdePkg/Library/UefiPalLib/UefiPalLib.c index e2550387ba..f646fd40f8 100644 --- a/MdePkg/Library/UefiPalLib/UefiPalLib.c +++ b/MdePkg/Library/UefiPalLib/UefiPalLib.c @@ -1,5 +1,6 @@ /** @file
- PAL Library implementation built upon UEFI.
+ PAL Library implementation retrieving the PAL Entry Point from the SAL System Table
+ register in the EFI System Confguration Table.
Copyright (c) 2007 - 2008, Intel Corporation All rights
reserved. This program and the accompanying materials are
@@ -41,12 +42,12 @@ UINT64 mPalProcEntry; returned or undefined result may occur during the execution of the procedure.
This function is only available on IPF.
- @param Index - The PAL procedure Index number.
- @param Arg2 - The 2nd parameter for PAL procedure calls.
- @param Arg3 - The 3rd parameter for PAL procedure calls.
- @param Arg4 - The 4th parameter for PAL procedure calls.
+ @param Index The PAL procedure Index number.
+ @param Arg2 The 2nd parameter for PAL procedure calls.
+ @param Arg3 The 3rd parameter for PAL procedure calls.
+ @param Arg4 The 4th parameter for PAL procedure calls.
- @return structure returned from the PAL Call procedure, including the status and return value.
+ @return Structure returned from the PAL Call procedure, including the status and return value.
**/
PAL_CALL_RETURN
@@ -76,7 +77,7 @@ PalCall ( The constructor function looks up the SAL System Table in the EFI System Configuration
Table. Once the SAL System Table is found, the PAL Entry Point in the SAL System Table
- will be derived and stored inot a global variable for library usage.
+ will be derived and stored into a global variable for library usage.
It will ASSERT() if the SAL System Table cannot be found or the data in the SAL System
Table is not the valid data.
@@ -105,9 +106,9 @@ UefiPalLibConstructor ( ASSERT_EFI_ERROR (Status);
//
- // Move the SAL System Table point to the first Entry
- // Due to the SAL Entry is in ascending order with the Entry type,
- // the type 0 Entry should be the first if exist.
+ // Check the first entry of SAL System Table,
+ // because the SAL entry is in ascending order with the entry type,
+ // the type 0 entry should be the first if exist.
//
SalStEntryDes = (SAL_ST_ENTRY_POINT_DESCRIPTOR *)(SalSystemTable + 1);
diff --git a/MdePkg/Library/UefiPalLib/UefiPalLib.inf b/MdePkg/Library/UefiPalLib/UefiPalLib.inf index ae2a564472..61cf6b0f9a 100644 --- a/MdePkg/Library/UefiPalLib/UefiPalLib.inf +++ b/MdePkg/Library/UefiPalLib/UefiPalLib.inf @@ -1,10 +1,10 @@ # @file
-# Uefi Instance of PAL Library Class
+# UEFI Instance of PAL Library Class.
#
-# This library implements the PAL Library Class by getting the PAL entry from SAL System
-# Table, and use AsmPalCall to produce the Pal Call.
+# This instance of PAL library retrieves the PAL Entry Point from the SAL System Table
+# register in the EFI System Confguration Table.
#
-# Copyright (c) 2007, Intel Corporation.
+# Copyright (c) 2007 - 2008, Intel Corporation.
#
# All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -21,7 +21,7 @@ BASE_NAME = UefiPalLib
FILE_GUID = B7F30170-9E5F-482a-B553-A145A5787003
MODULE_TYPE = UEFI_DRIVER
- VERSION_STRING = 1.04
+ VERSION_STRING = 1.0
LIBRARY_CLASS = PalLib|UEFI_DRIVER UEFI_APPLICATION
EDK_RELEASE_VERSION = 0x00020000
EFI_SPECIFICATION_VERSION = 0x00020000
|