[Bug 1959] New: LEON_Is_interrupt_masked for Leon2 in leon.h
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu Nov 10 12:50:51 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1959
Summary: LEON_Is_interrupt_masked for Leon2 in leon.h
Product: RTEMS
Version: HEAD
Platform: sparc
OS/Version: RTEMS
Status: NEW
Severity: minor
Priority: P3
Component: bsps
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: silvah15 at gmail.com
The function-like macro LEON_Is_interrupt_masked defined in leon2
(c/src/lib/libbsp/sparc/leon2/include) as:
#define LEON_Is_interrupt_masked( _source ) \
(LEON_REG.Interrupt_Masked & (1 << (_source)))
The LEON_REG is of type LEON_Register_Map structure and Interrupt_Masked does
not exist in structure, instead Interrupt_Mask exists.
Proposed Solution: The LEON_Is_interrupt_masked should be updated to:
#define LEON_Is_interrupt_masked( _source ) \
(LEON_REG.Interrupt_Mask & (1 << (_source)))
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list