TianoCore EDK2 master
|
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PcdLib.h>
#include <Library/CpuLib.h>
#include <Library/SynchronizationLib.h>
#include <Uefi/UefiBaseType.h>
#include <IndustryStandard/IntelTdx.h>
#include <IndustryStandard/Tdx.h>
#include <Library/TdxMailboxLib.h>
Go to the source code of this file.
Functions | |
UINT32 EFIAPI | GetCpusNum (VOID) |
volatile VOID *EFIAPI | GetTdxMailBox (VOID) |
VOID EFIAPI | MpSendWakeupCommand (IN UINT16 Command, IN UINT64 WakeupVector, IN UINT64 WakeupArgs1, IN UINT64 WakeupArgs2, IN UINT64 WakeupArgs3, IN UINT64 WakeupArgs4) |
VOID EFIAPI | MpSerializeStart (VOID) |
VOID EFIAPI | MpSerializeEnd (VOID) |
Copyright (c) 2008, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TdxMailbox.c.
UINT32 EFIAPI GetCpusNum | ( | VOID | ) |
This function will be called by BSP to get the CPU number.
CPU | number |
Definition at line 27 of file TdxMailbox.c.
volatile VOID *EFIAPI GetTdxMailBox | ( | VOID | ) |
Get the address of Td mailbox.
Definition at line 49 of file TdxMailbox.c.
VOID EFIAPI MpSendWakeupCommand | ( | IN UINT16 | Command, |
IN UINT64 | WakeupVector, | ||
IN UINT64 | WakeupArgs1, | ||
IN UINT64 | WakeupArgs2, | ||
IN UINT64 | WakeupArgs3, | ||
IN UINT64 | WakeupArgs4 | ||
) |
This function will be called by BSP to wakeup APs the are spinning on mailbox in protected mode
[in] | Command | Command to send APs |
[in] | WakeupVector | If used, address for APs to start executing |
[in] | WakeArgsX | Args to pass to APs for excuting commands |
Definition at line 66 of file TdxMailbox.c.
VOID EFIAPI MpSerializeEnd | ( | VOID | ) |
BSP wait until all the APs arriving. It means the task triggered by BSP is ended.
Definition at line 123 of file TdxMailbox.c.
VOID EFIAPI MpSerializeStart | ( | VOID | ) |
BSP wait until all the APs arriving. It means the task triggered by BSP is started.
Definition at line 98 of file TdxMailbox.c.