TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptDispatchApDxe.c
Go to the documentation of this file.
1
9#include "CryptParallelHash.h"
11#include <Protocol/MpService.h>
12
17VOID
18EFIAPI
20 VOID
21 )
22{
23 EFI_STATUS Status;
24 EFI_MP_SERVICES_PROTOCOL *MpServices;
25
26 Status = gBS->LocateProtocol (
27 &gEfiMpServiceProtocolGuid,
28 NULL,
29 (VOID **)&MpServices
30 );
31 if (EFI_ERROR (Status)) {
32 //
33 // Failed to locate MpServices Protocol, do parallel hash by one core.
34 //
35 DEBUG ((DEBUG_ERROR, "[DispatchBlockToApDxe] Failed to locate MpServices Protocol. Status = %r\n", Status));
36 return;
37 }
38
39 Status = MpServices->StartupAllAPs (
40 MpServices,
42 FALSE,
43 NULL,
44 0,
45 NULL,
46 NULL
47 );
48 return;
49}
VOID EFIAPI DispatchBlockToAp(VOID)
VOID EFIAPI ParallelHashApExecute(IN VOID *ProcedureArgument)
#define NULL
Definition: Base.h:319
#define FALSE
Definition: Base.h:307
#define DEBUG(Expression)
Definition: DebugLib.h:434
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_BOOT_SERVICES * gBS