]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/CpuGdt.c
Clean up DEC files:
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / CpuGdt.c
old mode 100755 (executable)
new mode 100644 (file)
index b6d8ffb..32f45a5
@@ -2,8 +2,8 @@
   C based implemention of IA32 interrupt handling only\r
   requiring a minimal assembly interrupt entry point.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
 // Global Descriptor Entry structures\r
 //\r
 \r
-typedef\r
-struct _GDT_ENTRY {\r
-  UINT16 limit15_0;\r
-  UINT16 base15_0;\r
-  UINT8  base23_16;\r
-  UINT8  type;\r
-  UINT8  limit19_16_and_flags;\r
-  UINT8  base31_24;\r
+typedef struct _GDT_ENTRY {\r
+  UINT16 Limit15_0;\r
+  UINT16 Base15_0;\r
+  UINT8  Base23_16;\r
+  UINT8  Type;\r
+  UINT8  Limit19_16_and_flags;\r
+  UINT8  Base31_24;\r
 } GDT_ENTRY;\r
 \r
 typedef\r
@@ -162,11 +161,12 @@ STATIC GDT_ENTRIES GdtTemplate = {
 };\r
 \r
 /**\r
-  Initialize Global Descriptor Table\r
+  Initialize Global Descriptor Table.\r
 \r
 **/\r
 VOID\r
 InitGlobalDescriptorTable (\r
+  VOID\r
   )\r
 {\r
   GDT_ENTRIES *gdt;\r
@@ -188,7 +188,7 @@ InitGlobalDescriptorTable (
   // Write GDT register\r
   //\r
   gdtPtr.Base = (UINT32)(UINTN)(VOID*) gdt;\r
-  gdtPtr.Limit = sizeof (GdtTemplate) - 1;\r
+  gdtPtr.Limit = (UINT16) (sizeof (GdtTemplate) - 1);\r
   AsmWriteGdtr (&gdtPtr);\r
 \r
   //\r