Commit | Line | Data |
---|---|---|
2c7e5c2f HT |
1 | ; Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r |
2 | ; This program and the accompanying materials \r | |
3eb9473e | 3 | ; are licensed and made available under the terms and conditions of the BSD License \r |
4 | ; which accompanies this distribution. The full text of the license may be found at \r | |
5 | ; http://opensource.org/licenses/bsd-license.php \r | |
6 | ; \r | |
7 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
8 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
9 | ;\r | |
10 | ; Module Name:\r | |
11 | ;\r | |
c7f33ca4 | 12 | ; x86LocalApicTimerInitialize.Asm\r |
3eb9473e | 13 | ;\r |
14 | ; Abstract:\r | |
15 | ;\r | |
c7f33ca4 | 16 | ; Initialize Local Apic Timer\r |
3eb9473e | 17 | ;\r |
18 | ; Notes:\r | |
19 | ;\r | |
20 | ;------------------------------------------------------------------------------\r | |
21 | \r | |
22 | .386\r | |
23 | .model flat,C\r | |
24 | .code\r | |
25 | \r | |
c7f33ca4 | 26 | InternalX86GetApicBase PROTO C\r |
27 | \r | |
3eb9473e | 28 | ;------------------------------------------------------------------------------\r |
29 | ; VOID\r | |
30 | ; EFIAPI\r | |
c7f33ca4 | 31 | ; CpuInitLocalApicTimer (\r |
3eb9473e | 32 | ; VOID\r |
33 | ; );\r | |
34 | ;------------------------------------------------------------------------------\r | |
c7f33ca4 | 35 | CpuInitLocalApicTimer PROC\r |
36 | call InternalX86GetApicBase\r | |
37 | mov dword ptr ds:[eax + 3e0h], 0ah\r | |
38 | bts dword ptr ds:[eax + 320h], 17\r | |
39 | mov dword ptr ds:[eax + 380h], -1\r | |
3eb9473e | 40 | ret\r |
c7f33ca4 | 41 | CpuInitLocalApicTimer ENDP\r |
3eb9473e | 42 | \r |
43 | END\r |