diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-04 19:24:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-04 19:24:28 +0000 |
commit | bd547e3623c3222791770c92bb698e83e05b9af7 (patch) | |
tree | da735323e158f3eca408f574f44b61e5be753f78 /c/src/librtems++/src/rtemsInterrupt.cc | |
parent | 2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-bd547e3623c3222791770c92bb698e83e05b9af7.tar.bz2 |
2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1282/misc
* src/rtemsInterrupt.cc: Correct vec/vector variable confusion.
Diffstat (limited to '')
-rw-r--r-- | c/src/librtems++/src/rtemsInterrupt.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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, |