diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-19 03:18:32 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-19 03:18:32 +0000 |
commit | 581e82a1f62368f6669c9e30fef8f56c469fcb4a (patch) | |
tree | 137f0e447a45bc090351d6830cdb087ee2765f15 /MdePkg | |
parent | 4d33f33ac45099640eac08457e7843837d8a74b7 (diff) | |
download | edk2-platforms-581e82a1f62368f6669c9e30fef8f56c469fcb4a.tar.xz |
Fix bugs in MdePkg for GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3345 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/IndustryStandard/SmBus.h | 2 | ||||
-rw-r--r-- | MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h | 2 | ||||
-rw-r--r-- | MdePkg/Library/UefiScsiLib/UefiScsiLib.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/MdePkg/Include/IndustryStandard/SmBus.h b/MdePkg/Include/IndustryStandard/SmBus.h index c557e203dd..27687f8a70 100644 --- a/MdePkg/Include/IndustryStandard/SmBus.h +++ b/MdePkg/Include/IndustryStandard/SmBus.h @@ -41,8 +41,6 @@ typedef struct { UINTN SmbusDeviceAddress : 7;
} EFI_SMBUS_DEVICE_ADDRESS;
-typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
-
typedef enum _EFI_SMBUS_OPERATION
{
EfiSmbusQuickRead,
diff --git a/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h b/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h index 51d2d92202..8841cea033 100644 --- a/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h +++ b/MdePkg/Library/PeiServicesTablePointerLibIdt/InternalPeiServicesTablePointer.h @@ -32,4 +32,4 @@ AsmPeiSevicesTablePointer ( );
-#endif
\ No newline at end of file +#endif
diff --git a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c index ee576d7a14..ed8ca82335 100644 --- a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c +++ b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c @@ -256,7 +256,7 @@ SubmitModeSense10Command ( ScsiIo->GetDeviceLocation (ScsiIo, &Target, &Lun);
Cdb[0] = EFI_SCSI_OP_MODE_SEN10;
- Cdb[1] = (UINT8) (Lun & 0xe0 + (DBDField << 3) & 0x08);
+ Cdb[1] = (UINT8) ((Lun & 0xe0) + ((DBDField << 3) & 0x08));
Cdb[2] = (UINT8) ((PageControl & 0xc0) | (PageCode & 0x3f));
Cdb[7] = (UINT8) (*DataLength >> 8);
Cdb[8] = (UINT8) (*DataLength);
|