VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInternal.c@ 105681

最後變更 在這個檔案從105681是 99404,由 vboxsync 提交於 2 年 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.5 KB
 
1/** @file
2 Internal ARCH Specific file of MM memory check library.
3
4 MM memory check library implementation. This library consumes MM_ACCESS_PROTOCOL
5 to get MMRAM information. In order to use this library instance, the platform should produce
6 all MMRAM range via MM_ACCESS_PROTOCOL, including the range for firmware (like MM Core
7 and MM driver) and/or specific dedicated hardware.
8
9 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
10 Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>
11
12 SPDX-License-Identifier: BSD-2-Clause-Patent
13
14**/
15#include <Library/BaseLib.h>
16#include <Library/BaseMemoryLib.h>
17#include <Library/DebugLib.h>
18//
19// Maximum support address used to check input buffer
20//
21extern EFI_PHYSICAL_ADDRESS mMmMemLibInternalMaximumSupportAddress;
22
23/**
24 Calculate and save the maximum support address.
25
26**/
27VOID
28MmMemLibInternalCalculateMaximumSupportAddress (
29 VOID
30 )
31{
32 mMmMemLibInternalMaximumSupportAddress = MAX_ALLOC_ADDRESS;
33
34 DEBUG ((DEBUG_INFO, "mMmMemLibInternalMaximumSupportAddress = 0x%lx\n", mMmMemLibInternalMaximumSupportAddress));
35}
36
37/**
38 Initialize cached Mmram Ranges from HOB.
39
40 @retval EFI_UNSUPPORTED The routine is unable to extract MMRAM information.
41 @retval EFI_SUCCESS MmRanges are populated successfully.
42
43**/
44EFI_STATUS
45MmMemLibInternalPopulateMmramRanges (
46 VOID
47 )
48{
49 // Not implemented for AARCH64.
50 return EFI_SUCCESS;
51}
52
53/**
54 Deinitialize cached Mmram Ranges.
55
56**/
57VOID
58MmMemLibInternalFreeMmramRanges (
59 VOID
60 )
61{
62 // Not implemented for AARCH64.
63}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette