Last change
on this file since 108794 was 108794, checked in by vboxsync, 2 weeks ago |
Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.3 KB
|
Line | |
---|
1 | /** @file -- VarCheckPolicyLibStandaloneMm.c
|
---|
2 | This is an instance of a VarCheck lib constructor for Standalone MM.
|
---|
3 |
|
---|
4 | Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
|
---|
5 | Copyright (c) Microsoft Corporation. All rights reserved.
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #include <Library/StandaloneMmMemLib.h>
|
---|
11 |
|
---|
12 | #include "VarCheckPolicyLib.h"
|
---|
13 |
|
---|
14 | /**
|
---|
15 | Standalone MM constructor function of VarCheckPolicyLib to invoke common
|
---|
16 | constructor routine.
|
---|
17 |
|
---|
18 | @param[in] ImageHandle The firmware allocated handle for the EFI image.
|
---|
19 | @param[in] SystemTable A pointer to the EFI System Table.
|
---|
20 |
|
---|
21 | @retval EFI_SUCCESS The constructor executed correctly.
|
---|
22 |
|
---|
23 | **/
|
---|
24 | EFI_STATUS
|
---|
25 | EFIAPI
|
---|
26 | VarCheckPolicyLibStandaloneConstructor (
|
---|
27 | IN EFI_HANDLE ImageHandle,
|
---|
28 | IN EFI_MM_SYSTEM_TABLE *SystemTable
|
---|
29 | )
|
---|
30 | {
|
---|
31 | return VarCheckPolicyLibCommonConstructor ();
|
---|
32 | }
|
---|
33 |
|
---|
34 | /**
|
---|
35 | This function is wrapper function to validate the Primary Buffer (CommBuffer).
|
---|
36 |
|
---|
37 | @param Buffer The buffer start address to be checked.
|
---|
38 | @param Length The buffer length to be checked.
|
---|
39 |
|
---|
40 | @retval TRUE This buffer is valid.
|
---|
41 | @retval FALSE This buffer is not valid.
|
---|
42 | **/
|
---|
43 | BOOLEAN
|
---|
44 | EFIAPI
|
---|
45 | VarCheckPolicyIsPrimaryBufferValid (
|
---|
46 | IN EFI_PHYSICAL_ADDRESS Buffer,
|
---|
47 | IN UINT64 Length
|
---|
48 | )
|
---|
49 | {
|
---|
50 | return TRUE;
|
---|
51 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.