]>
Commit | Line | Data |
---|---|---|
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 | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php.\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #include <PiMm.h>\r | |
17 | #include <Library/MmServicesTableLib.h>\r | |
18 | #include <Library/DebugLib.h>\r | |
19 | \r | |
20 | EFI_MM_SYSTEM_TABLE *gMmst = NULL;\r | |
21 | \r | |
22 | /**\r | |
23 | The constructor function caches the pointer of the MM Services Table.\r | |
24 | \r | |
6c61ec4c BD |
25 | @param ImageHandle The firmware allocated handle for the EFI image.\r |
26 | @param MmSystemTable A pointer to the MM System Table.\r | |
2ac8d8d5 AB |
27 | \r |
28 | @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r | |
29 | \r | |
30 | **/\r | |
31 | EFI_STATUS\r | |
32 | EFIAPI\r | |
33 | StandaloneMmServicesTableLibConstructor (\r | |
34 | IN EFI_HANDLE ImageHandle,\r | |
35 | IN EFI_MM_SYSTEM_TABLE *MmSystemTable\r | |
36 | )\r | |
37 | {\r | |
38 | gMmst = MmSystemTable;\r | |
39 | ASSERT (gMmst != NULL);\r | |
40 | return EFI_SUCCESS;\r | |
41 | }\r |