Module: xenomai-2.6
Branch: master
Commit: d03662a77c70afb2dab79df4f291911df1e9f559
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=d03662a77c70afb2dab79df4f291911df1e9f559

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Dec 14 18:50:12 2012 +0100

x86: fix inverted check for integrated APIC

---

 include/asm-x86/hal_32.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-x86/hal_32.h b/include/asm-x86/hal_32.h
index ec5355a..4251fa0 100644
--- a/include/asm-x86/hal_32.h
+++ b/include/asm-x86/hal_32.h
@@ -223,7 +223,7 @@ static const char *const rthal_fault_labels[] = {
 
 static inline int rthal_set_apic_base(int lvtt_value)
 {
-       if (APIC_INTEGRATED(GET_APIC_VERSION(apic_read(APIC_LVR))))
+       if (!APIC_INTEGRATED(GET_APIC_VERSION(apic_read(APIC_LVR))))
                lvtt_value |= SET_APIC_TIMER_BASE(APIC_TIMER_BASE_DIV);
 
        return lvtt_value;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to