From e188a609341e9cdb5e6de6bf80b870e42b8a4ddc Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 26 Nov 2008 17:59:34 +0000 Subject: Fix bundle of issue for ICC build git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6740 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/CpuIoDxe/CpuIo.c | 8 ++++---- DuetPkg/CpuIoDxe/CpuIo.inf | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'DuetPkg/CpuIoDxe') diff --git a/DuetPkg/CpuIoDxe/CpuIo.c b/DuetPkg/CpuIoDxe/CpuIo.c index e946bd45cd..9e5be46df8 100644 --- a/DuetPkg/CpuIoDxe/CpuIo.c +++ b/DuetPkg/CpuIoDxe/CpuIo.c @@ -73,7 +73,7 @@ Returns: UINTN DestinationStride; UINTN SourceStride; - Width = Width & 0x03; + Width = (EFI_CPU_IO_PROTOCOL_WIDTH) (Width & 0x03); Stride = (UINTN)1 << Width; DestinationStride = DestinationStrideFlag ? Stride : 0; SourceStride = SourceStrideFlag ? Stride : 0; @@ -305,7 +305,7 @@ Returns: OutStride = 0; } - Width = Width & 0x03; + Width = (EFI_CPU_IO_PROTOCOL_WIDTH) (Width & 0x03); // // Loop for each iteration and move the data @@ -398,7 +398,7 @@ Returns: OutStride = 0; } - Width = Width & 0x03; + Width = (EFI_CPU_IO_PROTOCOL_WIDTH) (Width & 0x03); // // Loop for each iteration and move the data @@ -518,7 +518,7 @@ Returns: Count = 1; } - Width = Width & 0x03; + Width = (EFI_CPU_IO_PROTOCOL_WIDTH) (Width & 0x03); if (Address - 1 + ((UINTN)1 << Width) * Count > Limit) { return EFI_UNSUPPORTED; } diff --git a/DuetPkg/CpuIoDxe/CpuIo.inf b/DuetPkg/CpuIoDxe/CpuIo.inf index b803169049..b99e23cc41 100644 --- a/DuetPkg/CpuIoDxe/CpuIo.inf +++ b/DuetPkg/CpuIoDxe/CpuIo.inf @@ -48,6 +48,7 @@ [Sources.IA32] Ia32/CpuIoAccess.asm | MSFT + Ia32/CpuIoAccess.asm | INTEL Ia32/CpuIoAccessGNU.c | GCC [Sources.X64] -- cgit v1.2.3