Files
Chasel Chiu 4e62a35ebf MinPlatformPkg: Add SetCacheMtrrLib library class.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2314

MinPlatformPkg should contain the library class header (API)
and the NULL library class instance.

Cc: Michael Kubacki <michael.a.kubacki@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
2019-11-01 11:03:51 +08:00

40 lines
683 B
C

/** @file
NULL instances of SetCacheMtrr library functions.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/PcdLib.h>
#include <Library/DebugLib.h>
/**
Set Cache Mtrr.
**/
VOID
EFIAPI
SetCacheMtrr (
VOID
)
{
return;
}
/**
Update MTRR setting in EndOfPei phase.
This function will clear temporary memory (CAR) phase MTRR settings
and configure MTRR to cover permanent memory.
@retval EFI_SUCCESS The function completes successfully.
**/
EFI_STATUS
EFIAPI
SetCacheMtrrAfterEndOfPei (
VOID
)
{
return EFI_SUCCESS;
}