]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ia32/X86LocalApicTimerInitialize.asm
Renamed remotely
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseTimerLibLocalApic / Ia32 / X86LocalApicTimerInitialize.asm
diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ia32/X86LocalApicTimerInitialize.asm b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ia32/X86LocalApicTimerInitialize.asm
new file mode 100644 (file)
index 0000000..428cc64
--- /dev/null
@@ -0,0 +1,43 @@
+; Copyright (c) 2007, Intel Corporation                                                         \r
+; All rights reserved. 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
+;                                                                                           \r
+; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.    \r
+;\r
+; Module Name:\r
+;\r
+;   x86LocalApicTimerInitialize.Asm\r
+;\r
+; Abstract:\r
+;\r
+;   Initialize Local Apic Timer\r
+;\r
+; Notes:\r
+;\r
+;------------------------------------------------------------------------------\r
+\r
+    .386\r
+    .model  flat,C\r
+    .code\r
+\r
+InternalX86GetApicBase    PROTO   C\r
+\r
+;------------------------------------------------------------------------------\r
+; VOID\r
+; EFIAPI\r
+; CpuInitLocalApicTimer (\r
+;   VOID\r
+;   );\r
+;------------------------------------------------------------------------------\r
+CpuInitLocalApicTimer    PROC\r
+    call InternalX86GetApicBase\r
+    mov dword ptr ds:[eax + 3e0h], 0ah\r
+    bts dword ptr ds:[eax + 320h], 17\r
+    mov dword ptr ds:[eax + 380h], -1\r
+    ret\r
+CpuInitLocalApicTimer    ENDP\r
+\r
+    END\r