[rtems commit] PR1960: ERC32_Is_interrupt_masked for ERC32 in erc32.h

Gedare Bloom gedare at rtems.org
Wed Dec 11 16:19:47 UTC 2013


Module:    rtems
Branch:    master
Commit:    bde22370203d6b68a109a125d540773c621f7c2e
Changeset: http://git.rtems.org/rtems/commit/?id=bde22370203d6b68a109a125d540773c621f7c2e

Author:    Helder Silva <silvah15 at gmail.com>
Date:      Thu Nov 10 06:57:29 2011 -0600

PR1960: ERC32_Is_interrupt_masked for ERC32 in erc32.h

The function-like macro ERC32_Is_interrupt_masked defined as:

  (ERC32_MEC.Interrupt_Masked & (1 << (_source)))

The ERC32_MEC is of type ERC32_Register_Map structure and Interrupt_Masked does
not exist in structure, instead Interrupt_Mask exists.
Update the macro accordingly.

---

 c/src/lib/libbsp/sparc/erc32/include/erc32.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/erc32/include/erc32.h b/c/src/lib/libbsp/sparc/erc32/include/erc32.h
index bea543c..b8dd01b 100644
--- a/c/src/lib/libbsp/sparc/erc32/include/erc32.h
+++ b/c/src/lib/libbsp/sparc/erc32/include/erc32.h
@@ -362,7 +362,7 @@ static __inline__ int bsp_irq_fixup(int irq)
   (ERC32_MEC.Interrupt_Pending & (1 << (_source)))
 
 #define ERC32_Is_interrupt_masked( _source ) \
-  (ERC32_MEC.Interrupt_Masked & (1 << (_source)))
+  (ERC32_MEC.Interrupt_Mask & (1 << (_source)))
 
 #define ERC32_Mask_interrupt( _source ) \
   do { \




More information about the vc mailing list