]>
Commit | Line | Data |
---|---|---|
5d5be45b ZL |
1 | /** @file\r |
2 | Dispatch the block task to each AP in Smm mode for parallelhash algorithm.\r | |
3 | \r | |
4 | Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include "CryptParallelHash.h"\r | |
10 | #include <Library/MmServicesTableLib.h>\r | |
11 | \r | |
12 | /**\r | |
13 | Dispatch the block task to each AP in SMM mode.\r | |
14 | \r | |
15 | **/\r | |
16 | VOID\r | |
17 | EFIAPI\r | |
18 | DispatchBlockToAp (\r | |
19 | VOID\r | |
20 | )\r | |
21 | {\r | |
22 | UINTN Index;\r | |
23 | \r | |
24 | if (gMmst == NULL) {\r | |
25 | return;\r | |
26 | }\r | |
27 | \r | |
28 | for (Index = 0; Index < gMmst->NumberOfCpus; Index++) {\r | |
29 | if (Index != gMmst->CurrentlyExecutingCpu) {\r | |
30 | gMmst->MmStartupThisAp (ParallelHashApExecute, Index, NULL);\r | |
31 | }\r | |
32 | }\r | |
33 | \r | |
34 | return;\r | |
35 | }\r |