AppPkg: fix webserver build for !Ia32/X64

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>
This commit is contained in:
Leif Lindholm 2018-11-01 14:51:50 +00:00
parent 6c61ec4c62
commit 3e583d3459
2 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include <WebServer.h>
#include <Library/MtrrLib.h>
#include <Register/Msr.h>
#define VARIABLE_MTRR_VALID 0x800

View File

@ -20,7 +20,6 @@
#include <Guid/EventGroup.h>
#include <Register/Msr.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>