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
This commit is contained in:
yshang1 2007-07-19 03:18:32 +00:00
parent 4d33f33ac4
commit 581e82a1f6
3 changed files with 2 additions and 4 deletions

View File

@ -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,

View File

@ -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);