[coreboot] [commit] r6564 - trunk/src/cpu/x86/lapic

repository service svn at coreboot.org
Tue May 10 23:47:57 CEST 2011


Author: oxygene
Date: Tue May 10 23:47:57 2011
New Revision: 6564
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6564

Log:
This replaces the fixed shift values in the apic timer init with macros.

Signed-off-by: Vikram Narayanan <vikram186 at gmail.com>
Acked-by: Patrick Georgi <patrick at georgi-clan.de>

Modified:
   trunk/src/cpu/x86/lapic/apic_timer.c

Modified: trunk/src/cpu/x86/lapic/apic_timer.c
==============================================================================
--- trunk/src/cpu/x86/lapic/apic_timer.c	Tue May 10 23:42:52 2011	(r6563)
+++ trunk/src/cpu/x86/lapic/apic_timer.c	Tue May 10 23:47:57 2011	(r6564)
@@ -36,7 +36,7 @@
 	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);




More information about the coreboot mailing list