TianoCore EDK2 master
Loading...
Searching...
No Matches
TdxMailboxNull.c File Reference

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)
 

Detailed Description

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 TdxMailboxNull.c.

Function Documentation

◆ GetCpusNum()

UINT32 EFIAPI GetCpusNum ( VOID  )

This function will be called by BSP to get the CPU number.

Return values
CPUnumber

Definition at line 20 of file TdxMailboxNull.c.

◆ GetTdxMailBox()

volatile VOID *EFIAPI GetTdxMailBox ( VOID  )

Get the address of Td mailbox.

Definition at line 33 of file TdxMailboxNull.c.

◆ MpSendWakeupCommand()

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

Parameters
[in]CommandCommand to send APs
[in]WakeupVectorIf used, address for APs to start executing
[in]WakeArgsXArgs to pass to APs for excuting commands

Definition at line 51 of file TdxMailboxNull.c.

◆ MpSerializeEnd()

VOID EFIAPI MpSerializeEnd ( VOID  )

BSP wait until all the APs arriving. It means the task triggered by BSP is ended.

Definition at line 80 of file TdxMailboxNull.c.

◆ MpSerializeStart()

VOID EFIAPI MpSerializeStart ( VOID  )

BSP wait until all the APs arriving. It means the task triggered by BSP is started.

Definition at line 68 of file TdxMailboxNull.c.