1;------------------------------------------------------------------------------
3; TDX Common defitions used by the APs in mailbox
5; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6; SPDX-License-Identifier: BSD-2-Clause-Patent
8;------------------------------------------------------------------------------
12WakeupVectorOffset equ 08h
14FirmwareArgsOffset equ 800h
15WakeupArgsRelocatedMailBox equ 800h
16AcceptPageArgsPhysicalStart equ 800h
17AcceptPageArgsPhysicalEnd equ 808h
18AcceptPageArgsTopStackAddress equ 810h
19AcceptPageArgsApStackSize equ 818h
20CpuArrivalOffset equ 900h
21CpusExitingOffset equ 0a00h
22TalliesOffset equ 0a08h
29PAGE_ACCEPT_LEVEL_4K equ 0
30PAGE_ACCEPT_LEVEL_2M equ 1
31PAGE_ACCEPT_LEVEL_1G equ 2
33TDX_PAGE_ALREADY_ACCEPTED equ 0x00000b0a
34TDX_PAGE_SIZE_MISMATCH equ 0xc0000b0b
36; Errors of APs in Mailbox
38ERROR_INVALID_ACCEPT_PAGE_SIZE equ 1
39ERROR_ACCEPT_PAGE_ERROR equ 2
40ERROR_INVALID_FALLBACK_PAGE_LEVEL equ 3
42MpProtectedModeWakeupCommandNoop equ 0
43MpProtectedModeWakeupCommandWakeup equ 1
44MpProtectedModeWakeupCommandSleep equ 2
45MpProtectedModeWakeupCommandAcceptPages equ 3
47MailboxApicIdInvalid equ 0xffffffff
48MailboxApicidBroadcast equ 0xfffffffe
50%define TDCALL_TDINFO 0x1
51%define TDCALL_TDACCEPTPAGE 0x6