]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/CpuRuntimeDxe/CpuIo.c
fixed to build under IPF.
[mirror_edk2.git] / Nt32Pkg / CpuRuntimeDxe / CpuIo.c
index a3b7c59e91ba582b78aa278ba659f7e98216c359..b513c7242d79e6fb5e248ba5a63c4a069aa25a28 100644 (file)
@@ -1,4 +1,4 @@
-/*++\r
+/**@file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -21,12 +21,7 @@ Abstract:
   the implementations of architectural protocols and the PCI Root\r
   Bridge I/O Protocol.\r
 \r
---*/\r
-\r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
+**/\r
 \r
 #include <CpuDriver.h>\r
 \r
@@ -324,7 +319,7 @@ Returns:
     Count = 1;\r
   }\r
 \r
-  Width = Width & 0x03;\r
+  Width = (EFI_CPU_IO_PROTOCOL_WIDTH)(Width & 0x03);\r
   if (Address - 1 + (1 << Width) * Count > Limit) {\r
     return EFI_UNSUPPORTED;\r
   }\r