mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/CpuDxe: Rename variables to follow EDKII coding standard
The change doesn't impact any functionality. Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
This commit is contained in:
parent
030ba3097a
commit
773b0bc283
|
@ -2,7 +2,7 @@
|
||||||
C based implementation of IA32 interrupt handling only
|
C based implementation of IA32 interrupt handling only
|
||||||
requiring a minimal assembly interrupt entry point.
|
requiring a minimal assembly interrupt entry point.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
//
|
//
|
||||||
// Global descriptor table (GDT) Template
|
// Global descriptor table (GDT) Template
|
||||||
//
|
//
|
||||||
STATIC GDT_ENTRIES GdtTemplate = {
|
STATIC GDT_ENTRIES mGdtTemplate = {
|
||||||
//
|
//
|
||||||
// NULL_SEL
|
// NULL_SEL
|
||||||
//
|
//
|
||||||
|
@ -124,27 +124,27 @@ InitGlobalDescriptorTable (
|
||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
GDT_ENTRIES *gdt;
|
GDT_ENTRIES *Gdt;
|
||||||
IA32_DESCRIPTOR gdtPtr;
|
IA32_DESCRIPTOR Gdtr;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate Runtime Data for the GDT
|
// Allocate Runtime Data for the GDT
|
||||||
//
|
//
|
||||||
gdt = AllocateRuntimePool (sizeof (GdtTemplate) + 8);
|
Gdt = AllocateRuntimePool (sizeof (mGdtTemplate) + 8);
|
||||||
ASSERT (gdt != NULL);
|
ASSERT (Gdt != NULL);
|
||||||
gdt = ALIGN_POINTER (gdt, 8);
|
Gdt = ALIGN_POINTER (Gdt, 8);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialize all GDT entries
|
// Initialize all GDT entries
|
||||||
//
|
//
|
||||||
CopyMem (gdt, &GdtTemplate, sizeof (GdtTemplate));
|
CopyMem (Gdt, &mGdtTemplate, sizeof (mGdtTemplate));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Write GDT register
|
// Write GDT register
|
||||||
//
|
//
|
||||||
gdtPtr.Base = (UINT32)(UINTN)(VOID*) gdt;
|
Gdtr.Base = (UINT32) (UINTN) Gdt;
|
||||||
gdtPtr.Limit = (UINT16) (sizeof (GdtTemplate) - 1);
|
Gdtr.Limit = (UINT16) (sizeof (mGdtTemplate) - 1);
|
||||||
AsmWriteGdtr (&gdtPtr);
|
AsmWriteGdtr (&Gdtr);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Update selector (segment) registers base on new GDT
|
// Update selector (segment) registers base on new GDT
|
||||||
|
@ -152,4 +152,3 @@ InitGlobalDescriptorTable (
|
||||||
SetCodeSelector ((UINT16)CPU_CODE_SEL);
|
SetCodeSelector ((UINT16)CPU_CODE_SEL);
|
||||||
SetDataSelectors ((UINT16)CPU_DATA_SEL);
|
SetDataSelectors ((UINT16)CPU_DATA_SEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue