#1959 closed defect
LEON_Is_interrupt_masked for Leon2 in leon.h
Reported by: | Helder Silva | Owned by: | Daniel Hellstrom |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | bsps | Version: | 4.11 |
Severity: | minor | Keywords: | |
Cc: | jiri@… | Blocked By: | |
Blocking: |
Description
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)))
Attachments (1)
Change History (7)
comment:1 Changed on 11/10/11 at 11:50:51 by Helder Silva
comment:2 Changed on 11/27/11 at 15:18:36 by Joel Sherrill
Cc: | Jiri Gaisler added |
---|
comment:3 Changed on 11/23/14 at 17:38:20 by Joel Sherrill
Owner: | changed from Joel Sherrill to Daniel Hellstrom |
---|---|
Status: | new → assigned |
Changed on 11/23/14 at 22:15:26 by Jiri Gaisler
Attachment: | 0002-sparc-leon2-LEON_Is_interrupt_masked-for-Leon2-in-le.patch added |
---|
Fixes the variable name and inverts condition.
comment:4 Changed on 11/23/14 at 22:16:59 by Jiri Gaisler
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
comment:6 Changed on 12/02/14 at 13:04:33 by Jiri Gaisler <jiri@…>
Note: See
TracTickets for help on using
tickets.
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 ) \
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 ) \