VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.c@ 80721

Last change on this file since 80721 was 80721, checked in by vboxsync, 6 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 872 bytes
Line 
1/** @file
2 MM Services Table Library.
3
4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
5 Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#include <PiMm.h>
11#include <Library/MmServicesTableLib.h>
12#include <Library/DebugLib.h>
13
14EFI_MM_SYSTEM_TABLE *gMmst = NULL;
15
16/**
17 The constructor function caches the pointer of the MM Services Table.
18
19 @param ImageHandle The firmware allocated handle for the EFI image.
20 @param MmSystemTable A pointer to the MM System Table.
21
22 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
23
24**/
25EFI_STATUS
26EFIAPI
27StandaloneMmServicesTableLibConstructor (
28 IN EFI_HANDLE ImageHandle,
29 IN EFI_MM_SYSTEM_TABLE *MmSystemTable
30 )
31{
32 gMmst = MmSystemTable;
33 ASSERT (gMmst != NULL);
34 return EFI_SUCCESS;
35}
Note: See TracBrowser for help on using the repository browser.

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