Home
last modified time | relevance | path

Searched refs:TssBase (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/
DSmmFuncsArch.c61 UINTN TssBase; in InitGdt() local
90 TssBase = (UINTN)(GdtTssTables + GdtTableStepSize * Index + gcSmiGdtr.Limit + 1); in InitGdt()
91 GdtDescriptor = (IA32_SEGMENT_DESCRIPTOR *)(TssBase) - 2; in InitGdt()
92 GdtDescriptor->Bits.BaseLow = (UINT16)TssBase; in InitGdt()
93 GdtDescriptor->Bits.BaseMid = (UINT8)(TssBase >> 16); in InitGdt()
94 GdtDescriptor->Bits.BaseHigh = (UINT8)(TssBase >> 24); in InitGdt()
96 TssBase += TSS_SIZE; in InitGdt()
98 GdtDescriptor->Bits.BaseLow = (UINT16)TssBase; in InitGdt()
99 GdtDescriptor->Bits.BaseMid = (UINT8)(TssBase >> 16); in InitGdt()
100 GdtDescriptor->Bits.BaseHigh = (UINT8)(TssBase >> 24); in InitGdt()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/
DSmmFuncsArch.c58 UINTN TssBase; in InitGdt() local
80 TssBase = (UINTN)(GdtTssTables + GdtTableStepSize * Index + gcSmiGdtr.Limit + 1); in InitGdt()
81 GdtDescriptor = (IA32_SEGMENT_DESCRIPTOR *)(TssBase) - 2; in InitGdt()
82 GdtDescriptor->Bits.BaseLow = (UINT16)(UINTN)TssBase; in InitGdt()
83 GdtDescriptor->Bits.BaseMid = (UINT8)((UINTN)TssBase >> 16); in InitGdt()
84 GdtDescriptor->Bits.BaseHigh = (UINT8)((UINTN)TssBase >> 24); in InitGdt()
90 …*(UINTN *)(TssBase + TSS_X64_IST1_OFFSET) = (mSmmStackArrayBase + EFI_PAGE_SIZE + Index * mSmmStac… in InitGdt()