TianoCore EDK2
master
Loading...
Searching...
No Matches
CryptDispatchApDxe.c
Go to the documentation of this file.
1
9
#include "
CryptParallelHash.h
"
10
#include <
Library/UefiBootServicesTableLib.h
>
11
#include <
Protocol/MpService.h
>
12
17
VOID
18
EFIAPI
19
DispatchBlockToAp
(
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,
41
ParallelHashApExecute
,
42
FALSE
,
43
NULL
,
44
0,
45
NULL
,
46
NULL
47
);
48
return
;
49
}
DispatchBlockToAp
VOID EFIAPI DispatchBlockToAp(VOID)
Definition:
CryptDispatchApDxe.c:19
ParallelHashApExecute
VOID EFIAPI ParallelHashApExecute(IN VOID *ProcedureArgument)
Definition:
CryptParallelHash.c:32
CryptParallelHash.h
NULL
#define NULL
Definition:
Base.h:319
FALSE
#define FALSE
Definition:
Base.h:307
DEBUG
#define DEBUG(Expression)
Definition:
DebugLib.h:434
MpService.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
UefiBootServicesTableLib.h
gBS
EFI_BOOT_SERVICES * gBS
Definition:
UefiBootServicesTableLib.c:17
_EFI_MP_SERVICES_PROTOCOL
Definition:
MpService.h:662
CryptoPkg
Library
BaseCryptLib
Hash
CryptDispatchApDxe.c
Generated on Fri Nov 15 2024 18:01:05 for TianoCore EDK2 by
1.9.6