summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuDxe/CpuGdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuGdt.c')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuGdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuGdt.c b/UefiCpuPkg/CpuDxe/CpuGdt.c
index 692402c55d..cf571138e5 100644
--- a/UefiCpuPkg/CpuDxe/CpuGdt.c
+++ b/UefiCpuPkg/CpuDxe/CpuGdt.c
@@ -13,7 +13,7 @@
//
// Global descriptor table (GDT) Template
//
-STATIC GDT_ENTRIES mGdtTemplate = {
+STATIC GDT_ENTRIES mGdtTemplate = {
//
// NULL_SEL
//
@@ -143,7 +143,7 @@ InitGlobalDescriptorTable (
);
ASSERT_EFI_ERROR (Status);
ASSERT ((Memory != 0) && (Memory < SIZE_4GB));
- Gdt = (GDT_ENTRIES *) (UINTN) Memory;
+ Gdt = (GDT_ENTRIES *)(UINTN)Memory;
//
// Initialize all GDT entries
@@ -153,8 +153,8 @@ InitGlobalDescriptorTable (
//
// Write GDT register
//
- Gdtr.Base = (UINT32) (UINTN) Gdt;
- Gdtr.Limit = (UINT16) (sizeof (mGdtTemplate) - 1);
+ Gdtr.Base = (UINT32)(UINTN)Gdt;
+ Gdtr.Limit = (UINT16)(sizeof (mGdtTemplate) - 1);
AsmWriteGdtr (&Gdtr);
//