]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / StandaloneMmServicesTableLib / StandaloneMmServicesTableLib.c
CommitLineData
2ac8d8d5
AB
1/** @file\r
2 MM Services Table Library.\r
3\r
4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
5 Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>\r
9344f092 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
2ac8d8d5
AB
7\r
8**/\r
9\r
10#include <PiMm.h>\r
11#include <Library/MmServicesTableLib.h>\r
12#include <Library/DebugLib.h>\r
13\r
2f88bd3a 14EFI_MM_SYSTEM_TABLE *gMmst = NULL;\r
2ac8d8d5
AB
15\r
16/**\r
17 The constructor function caches the pointer of the MM Services Table.\r
18\r
6c61ec4c
BD
19 @param ImageHandle The firmware allocated handle for the EFI image.\r
20 @param MmSystemTable A pointer to the MM System Table.\r
2ac8d8d5
AB
21\r
22 @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
23\r
24**/\r
25EFI_STATUS\r
26EFIAPI\r
27StandaloneMmServicesTableLibConstructor (\r
28 IN EFI_HANDLE ImageHandle,\r
29 IN EFI_MM_SYSTEM_TABLE *MmSystemTable\r
30 )\r
31{\r
32 gMmst = MmSystemTable;\r
33 ASSERT (gMmst != NULL);\r
34 return EFI_SUCCESS;\r
35}\r