mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
OvmfPkg/MemEncryptSevLib: sort #includes, and entries in INF file sections
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Brijesh Singh <brijesh.singh@amd.com> Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
This commit is contained in:
parent
68e60a388d
commit
bd13ecf355
@ -31,8 +31,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
[Packages]
|
[Packages]
|
||||||
MdePkg/MdePkg.dec
|
|
||||||
MdeModulePkg/MdeModulePkg.dec
|
MdeModulePkg/MdeModulePkg.dec
|
||||||
|
MdePkg/MdePkg.dec
|
||||||
OvmfPkg/OvmfPkg.dec
|
OvmfPkg/OvmfPkg.dec
|
||||||
UefiCpuPkg/UefiCpuPkg.dec
|
UefiCpuPkg/UefiCpuPkg.dec
|
||||||
|
|
||||||
@ -42,12 +42,12 @@
|
|||||||
X64/VirtualMemory.c
|
X64/VirtualMemory.c
|
||||||
|
|
||||||
[Sources.IA32]
|
[Sources.IA32]
|
||||||
MemEncryptSevLibInternal.c
|
|
||||||
Ia32/MemEncryptSevLib.c
|
Ia32/MemEncryptSevLib.c
|
||||||
|
MemEncryptSevLibInternal.c
|
||||||
|
|
||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
BaseLib
|
BaseLib
|
||||||
CpuLib
|
|
||||||
CacheMaintenanceLib
|
CacheMaintenanceLib
|
||||||
|
CpuLib
|
||||||
DebugLib
|
DebugLib
|
||||||
MemoryAllocationLib
|
MemoryAllocationLib
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Register/Cpuid.h>
|
#include <Library/MemEncryptSevLib.h>
|
||||||
#include <Register/Amd/Cpuid.h>
|
#include <Register/Amd/Cpuid.h>
|
||||||
#include <Register/Amd/Msr.h>
|
#include <Register/Amd/Msr.h>
|
||||||
#include <Library/MemEncryptSevLib.h>
|
#include <Register/Cpuid.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function clears memory encryption bit for the memory region specified by
|
This function clears memory encryption bit for the memory region specified by
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Register/Cpuid.h>
|
#include <Library/MemEncryptSevLib.h>
|
||||||
#include <Register/Amd/Cpuid.h>
|
#include <Register/Amd/Cpuid.h>
|
||||||
#include <Register/Amd/Msr.h>
|
#include <Register/Amd/Msr.h>
|
||||||
#include <Library/MemEncryptSevLib.h>
|
#include <Register/Cpuid.h>
|
||||||
|
|
||||||
STATIC BOOLEAN mSevStatus = FALSE;
|
STATIC BOOLEAN mSevStatus = FALSE;
|
||||||
STATIC BOOLEAN mSevStatusChecked = FALSE;
|
STATIC BOOLEAN mSevStatusChecked = FALSE;
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Register/Cpuid.h>
|
#include <Library/MemEncryptSevLib.h>
|
||||||
#include <Register/Amd/Cpuid.h>
|
#include <Register/Amd/Cpuid.h>
|
||||||
#include <Register/Amd/Msr.h>
|
#include <Register/Amd/Msr.h>
|
||||||
#include <Library/MemEncryptSevLib.h>
|
#include <Register/Cpuid.h>
|
||||||
|
|
||||||
#include "VirtualMemory.h"
|
#include "VirtualMemory.h"
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
#include <Library/CpuLib.h>
|
#include <Library/CpuLib.h>
|
||||||
#include <Register/Cpuid.h>
|
|
||||||
#include <Register/Amd/Cpuid.h>
|
#include <Register/Amd/Cpuid.h>
|
||||||
|
#include <Register/Cpuid.h>
|
||||||
|
|
||||||
#include "VirtualMemory.h"
|
#include "VirtualMemory.h"
|
||||||
|
|
||||||
|
@ -20,13 +20,13 @@
|
|||||||
#ifndef __VIRTUAL_MEMORY__
|
#ifndef __VIRTUAL_MEMORY__
|
||||||
#define __VIRTUAL_MEMORY__
|
#define __VIRTUAL_MEMORY__
|
||||||
|
|
||||||
#include <Uefi.h>
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
|
#include <Library/CacheMaintenanceLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
|
#include <Uefi.h>
|
||||||
|
|
||||||
#include <Library/CacheMaintenanceLib.h>
|
|
||||||
#define SYS_CODE64_SEL 0x38
|
#define SYS_CODE64_SEL 0x38
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user