fix ecc report-out issues

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6831 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
tding1
2008-12-04 06:12:44 +00:00
parent 9fd4915feb
commit 4ebb0d9eb1
9 changed files with 17 additions and 28 deletions

View File

@ -46,10 +46,6 @@
[LibraryClasses]
BaseLib
DebugLib
UefiBootServicesTableLib
[Protocols]
gEfiCpuIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -48,7 +48,7 @@ MmioReadBuffer8 (
ReturnBuffer = Buffer;
while (Length--) {
while (Length-- > 0) {
*(Buffer++) = MmioRead8 (StartAddress++);
}
@ -97,7 +97,7 @@ MmioReadBuffer16 (
ReturnBuffer = Buffer;
while (Length) {
while (Length > 0) {
*(Buffer++) = MmioRead16 (StartAddress);
StartAddress += sizeof (UINT16);
Length -= sizeof (UINT16);
@ -148,7 +148,7 @@ MmioReadBuffer32 (
ReturnBuffer = Buffer;
while (Length) {
while (Length > 0) {
*(Buffer++) = MmioRead32 (StartAddress);
StartAddress += sizeof (UINT32);
Length -= sizeof (UINT32);
@ -199,7 +199,7 @@ MmioReadBuffer64 (
ReturnBuffer = Buffer;
while (Length) {
while (Length > 0) {
*(Buffer++) = MmioRead64 (StartAddress);
StartAddress += sizeof (UINT64);
Length -= sizeof (UINT64);
@ -242,7 +242,7 @@ MmioWriteBuffer8 (
ReturnBuffer = (UINT8 *) Buffer;
while (Length--) {
while (Length-- > 0) {
MmioWrite8 (StartAddress++, *(Buffer++));
}
@ -293,7 +293,7 @@ MmioWriteBuffer16 (
ReturnBuffer = (UINT16 *) Buffer;
while (Length) {
while (Length > 0) {
MmioWrite16 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT16);
@ -347,7 +347,7 @@ MmioWriteBuffer32 (
ReturnBuffer = (UINT32 *) Buffer;
while (Length) {
while (Length > 0) {
MmioWrite32 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT32);
@ -400,7 +400,7 @@ MmioWriteBuffer64 (
ReturnBuffer = (UINT64 *) Buffer;
while (Length) {
while (Length > 0) {
MmioWrite64 (StartAddress, *(Buffer++));
StartAddress += sizeof (UINT64);

View File

@ -41,9 +41,6 @@
[LibraryClasses]
DebugLib
UefiBootServicesTableLib
DevicePathLib
[Protocols]
gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef __INTERNAL_SMBUS_LIB_H
#define __INTERNAL_SMBUS_LIB_H
#ifndef _INTERNAL_SMBUS_LIB_H_
#define _INTERNAL_SMBUS_LIB_H_
#include <PiPei.h>

View File

@ -43,10 +43,6 @@
[LibraryClasses]
BaseMemoryLib
PeiServicesLib
DebugLib
PeiServicesTablePointerLib
[Ppis]
gEfiPeiSmbusPpiGuid # PPI ALWAYS_CONSUMED