2 The header file for Boot Script Executer module.
4 This driver is dispatched by Dxe core and the driver will reload itself to ACPI reserved memory
5 in the entry point. The functionality is to interpret and restore the S3 boot script
7 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
8 Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
10 This program and the accompanying materials
11 are licensed and made available under the terms and conditions of the BSD License
12 which accompanies this distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #ifndef _BOOT_SCRIPT_EXECUTOR_H_
20 #define _BOOT_SCRIPT_EXECUTOR_H_
24 #include <Library/BaseLib.h>
25 #include <Library/UefiDriverEntryPoint.h>
26 #include <Library/BaseMemoryLib.h>
27 #include <Library/DebugLib.h>
28 #include <Library/S3BootScriptLib.h>
29 #include <Library/PeCoffLib.h>
30 #include <Library/DxeServicesLib.h>
31 #include <Library/UefiBootServicesTableLib.h>
32 #include <Library/UefiRuntimeServicesTableLib.h>
33 #include <Library/PcdLib.h>
34 #include <Library/CacheMaintenanceLib.h>
35 #include <Library/TimerLib.h>
36 #include <Library/UefiLib.h>
37 #include <Library/DebugAgentLib.h>
38 #include <Library/LockBoxLib.h>
39 #include <Library/CpuExceptionHandlerLib.h>
40 #include <Library/DevicePathLib.h>
41 #include <Library/DxeServicesTableLib.h>
43 #include <Guid/AcpiS3Context.h>
44 #include <Guid/BootScriptExecutorVariable.h>
45 #include <Guid/MemoryProfile.h>
47 #include <Protocol/DxeSmmReadyToLock.h>
48 #include <IndustryStandard/Acpi.h>
50 #define PAGING_1G_ADDRESS_MASK_64 0x000FFFFFC0000000ull
53 a ASM function to transfer control to OS.
55 @param S3WakingVector The S3 waking up vector saved in ACPI Facs table
56 @param AcpiLowMemoryBase a buffer under 1M which could be used during the transfer
60 IN UINT32 S3WakingVector
,
61 IN UINT32 AcpiLowMemoryBase
64 a 32bit ASM function to transfer control to OS.
66 @param S3WakingVector The S3 waking up vector saved in ACPI Facs table
67 @param AcpiLowMemoryBase a buffer under 1M which could be used during the transfer
70 AsmTransferControl32 (
71 IN UINT32 S3WakingVector
,
72 IN UINT32 AcpiLowMemoryBase
75 a 16bit ASM function to transfer control to OS.
78 AsmTransferControl16 (
82 Set a IDT entry for interrupt vector 3 for debug purpose.
84 @param AcpiS3Context a pointer to a structure of ACPI_S3_CONTEXT
89 IN ACPI_S3_CONTEXT
*AcpiS3Context
92 extern UINT32 AsmFixAddress16
;
93 extern UINT32 AsmJmpAddr32
;
94 extern BOOLEAN mPage1GSupport
;
95 extern UINT64 mAddressEncMask
;
97 #endif //_BOOT_SCRIPT_EXECUTOR_H_