2 Dispatch Block to Aps in Dxe phase for parallelhash algorithm.
4 Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "CryptParallelHash.h"
10 #include <Library/UefiBootServicesTableLib.h>
11 #include <Protocol/MpService.h>
14 Dispatch the block task to each AP in PEI phase.
24 EFI_MP_SERVICES_PROTOCOL
*MpServices
;
26 Status
= gBS
->LocateProtocol (
27 &gEfiMpServiceProtocolGuid
,
31 if (EFI_ERROR (Status
)) {
33 // Failed to locate MpServices Protocol, do parallel hash by one core.
35 DEBUG ((DEBUG_ERROR
, "[DispatchBlockToApDxe] Failed to locate MpServices Protocol. Status = %r\n", Status
));
39 Status
= MpServices
->StartupAllAPs (
41 ParallelHashApExecute
,