From 0b9f0dd635b82cad34fcd47e20ce9c0c9c46c893 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Sat, 30 Jul 2016 01:23:52 +0800 Subject: [PATCH] UefiCpuPkg/CpuDxe: Move SetMtrrsFromBuffer() location. Cc: Michael Kinney Cc: Feng Tian Cc: Giri P Mudusuru Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Michael Kinney Tested-by: Laszlo Ersek Tested-by: Michael Kinney --- UefiCpuPkg/CpuDxe/CpuDxe.c | 15 +++++++++++++++ UefiCpuPkg/CpuDxe/CpuMp.c | 16 ---------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index 1b94290dd5..f6d0a67dba 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -313,6 +313,21 @@ CpuGetTimerValue ( return EFI_SUCCESS; } +/** + A minimal wrapper function that allows MtrrSetAllMtrrs() to be passed to + EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() as Procedure. + + @param[in] Buffer Pointer to an MTRR_SETTINGS object, to be passed to + MtrrSetAllMtrrs(). +**/ +VOID +EFIAPI +SetMtrrsFromBuffer ( + IN VOID *Buffer + ) +{ + MtrrSetAllMtrrs (Buffer); +} /** Implementation of SetMemoryAttributes() service of CPU Architecture Protocol. diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index 38603f9867..8f7a56c40d 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -1000,22 +1000,6 @@ ExitBootServicesCallback ( SendInitIpiAllExcludingSelf (); } -/** - A minimal wrapper function that allows MtrrSetAllMtrrs() to be passed to - EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() as Procedure. - - @param[in] Buffer Pointer to an MTRR_SETTINGS object, to be passed to - MtrrSetAllMtrrs(). -**/ -VOID -EFIAPI -SetMtrrsFromBuffer ( - IN VOID *Buffer - ) -{ - MtrrSetAllMtrrs (Buffer); -} - /** Initialize Multi-processor support.