summaryrefslogtreecommitdiffstats
path: root/src/cpu/x86/lapic/apic_timer.c
diff options
context:
space:
mode:
authorVikram Narayanan <vikram186@gmail.com>2011-05-10 21:47:57 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-05-10 21:47:57 +0000
commit6649d9740d79b8c52d40218d78393547aaad7548 (patch)
tree0bf4f46b6fef03d2d013c54c3530953b96169dc0 /src/cpu/x86/lapic/apic_timer.c
parenta8f0f5120b69e02eff5337932b92771363d159a5 (diff)
downloadcoreboot-6649d9740d79b8c52d40218d78393547aaad7548.tar.gz
coreboot-6649d9740d79b8c52d40218d78393547aaad7548.tar.bz2
coreboot-6649d9740d79b8c52d40218d78393547aaad7548.zip
This replaces the fixed shift values in the apic timer init with macros.
Signed-off-by: Vikram Narayanan <vikram186@gmail.com> Acked-by: Patrick Georgi <patrick@georgi-clan.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6564 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86/lapic/apic_timer.c')
-rw-r--r--src/cpu/x86/lapic/apic_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/lapic/apic_timer.c b/src/cpu/x86/lapic/apic_timer.c
index a4737b3e7c67..826f5b6ad47a 100644
--- a/src/cpu/x86/lapic/apic_timer.c
+++ b/src/cpu/x86/lapic/apic_timer.c
@@ -36,7 +36,7 @@ void init_timer(void)
msr_t fsb_clock_sts;
/* Set the apic timer to no interrupts and periodic mode */
- lapic_write(LAPIC_LVTT, (1 << 17) | (1<< 16) | (0 << 12) | (0 << 0));
+ lapic_write(LAPIC_LVTT, (LAPIC_LVT_TIMER_PERIODIC | LAPIC_LVT_MASKED));
/* Set the divider to 1, no divider */
lapic_write(LAPIC_TDCR, LAPIC_TDR_DIV_1);