]> git.proxmox.com Git - mirror_edk2.git/commitdiff
AppPkg: fix webserver build for !Ia32/X64
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 1 Nov 2018 14:51:50 +0000 (14:51 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 4 Feb 2019 17:07:47 +0000 (17:07 +0000)
The WebServer application is not meant to be Ia32/X64 specific, and would
build for other architectures, if it wasn't for the
  #include <Register/Msr.h>
in WebServer.h. Move that statement to Mtrr.c instead, which is the only
consumer, and is already being filtered out for other architectures.

Cc: Daryl McDaniel <edk2-lists@mc2research.org>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
AppPkg/Applications/Sockets/WebServer/Mtrr.c
AppPkg/Applications/Sockets/WebServer/WebServer.h

index 54356bde64c0ea08957e5d1bf07c07b191fd651c..4b8482d4e25919e454e5c50460858b4103440388 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <WebServer.h>
 #include <Library/MtrrLib.h>
+#include <Register/Msr.h>
 
 #define VARIABLE_MTRR_VALID     0x800
 
index 21b07b63df2d7e20e570c5a9f7932f6ea9e9ad16..16c30c8d6d89890c13df1aeec9993b755bf40528 100644 (file)
@@ -20,7 +20,6 @@
 \r
 #include <Guid/EventGroup.h>\r
 \r
-#include <Register/Msr.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r