From bd547e3623c3222791770c92bb698e83e05b9af7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 4 Aug 2008 19:24:28 +0000 Subject: 2008-08-04 Joel Sherrill PR 1282/misc * src/rtemsInterrupt.cc: Correct vec/vector variable confusion. --- c/src/librtems++/src/rtemsInterrupt.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/src/librtems++/src') diff --git a/c/src/librtems++/src/rtemsInterrupt.cc b/c/src/librtems++/src/rtemsInterrupt.cc index db48cf8ae7..21b875b414 100644 --- a/c/src/librtems++/src/rtemsInterrupt.cc +++ b/c/src/librtems++/src/rtemsInterrupt.cc @@ -52,7 +52,7 @@ rtemsInterrupt::rtemsInterrupt() vec < CPU_INTERRUPT_NUMBER_OF_VECTORS; vec++) { - interrupt_table[vector] = 0; + interrupt_table[vec] = 0; } initialised = true; } @@ -71,8 +71,8 @@ const rtems_status_code rtemsInterrupt::isr_catch(const rtems_vector_number vec) if (caught) return set_status_code(RTEMS_RESOURCE_IN_USE); - old_interrupt = interrupt_table[vector]; - interrupt_table[vector] = this; + old_interrupt = interrupt_table[vec]; + interrupt_table[vec] = this; vector = vec; set_status_code(rtems_interrupt_catch(redirector, -- cgit v1.2.3