]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/CpuHotplugSmm/Smbase.h
OvmfPkg/CpuHotplugSmm: introduce Post-SMM Pen for hot-added CPUs
[mirror_edk2.git] / OvmfPkg / CpuHotplugSmm / Smbase.h
1 /** @file
2 SMBASE relocation for hot-plugged CPUs.
3
4 Copyright (c) 2020, Red Hat, Inc.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7 **/
8
9 #ifndef SMBASE_H_
10 #define SMBASE_H_
11
12 #include <Uefi/UefiBaseType.h> // EFI_STATUS
13 #include <Uefi/UefiSpec.h> // EFI_BOOT_SERVICES
14
15 EFI_STATUS
16 SmbaseAllocatePostSmmPen (
17 OUT UINT32 *PenAddress,
18 IN CONST EFI_BOOT_SERVICES *BootServices
19 );
20
21 VOID
22 SmbaseReinstallPostSmmPen (
23 IN UINT32 PenAddress
24 );
25
26 VOID
27 SmbaseReleasePostSmmPen (
28 IN UINT32 PenAddress,
29 IN CONST EFI_BOOT_SERVICES *BootServices
30 );
31
32 #endif // SMBASE_H_