From 56649f43013703e95f54c293d708152b765cc49b Mon Sep 17 00:00:00 2001 From: Jian J Wang Date: Tue, 26 Dec 2017 08:43:59 +0800 Subject: UefiCpuPkg: Update code to use new structure field names Due to coding style fix of the structure definition in BaseLib.h, all code referencing those structure must be updated accordingly. Cc: Dandan Bi Cc: Eric Dong Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang Reviewed-by: Dandan Bi --- .../Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'UefiCpuPkg/Library/CpuExceptionHandlerLib/X64') diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c index 1dcf4277de..4d52b4eb0e 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c @@ -186,7 +186,7 @@ ArchSetupExcpetionStack ( // TssDesc = StackSwitchData->X64.ExceptionTssDesc; Tss = StackSwitchData->X64.ExceptionTss; - if (StackSwitchData->X64.StackSwitchExceptionNumber > ARRAY_SIZE (Tss->IST)) { + if (StackSwitchData->X64.StackSwitchExceptionNumber > ARRAY_SIZE (Tss->Ist)) { return EFI_INVALID_PARAMETER; } @@ -221,7 +221,7 @@ ArchSetupExcpetionStack ( TssDesc->Bits.BaseLow = (UINT16)TssBase; TssDesc->Bits.BaseMidl = (UINT8)(TssBase >> 16); TssDesc->Bits.Type = IA32_GDT_TYPE_TSS; - TssDesc->Bits.P = 1; + TssDesc->Bits.Present = 1; TssDesc->Bits.LimitHigh = 0; TssDesc->Bits.BaseMidh = (UINT8)(TssBase >> 24); TssDesc->Bits.BaseHigh = (UINT32)(TssBase >> 32); @@ -236,7 +236,7 @@ ArchSetupExcpetionStack ( // // Fixup IST // - Tss->IST[Index] = StackTop; + Tss->Ist[Index] = StackTop; StackTop -= StackSwitchData->X64.KnownGoodStackSize; // -- cgit v1.2.3