[RTEMS Project] #4846: Code for test software
RTEMS trac
trac at rtems.org
Thu Feb 9 14:54:34 UTC 2023
#4846: Code for test software
----------------------------+---------------------------
Reporter: Daniel Páscoa | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: admin | Version: 6
Severity: normal | Keywords: qualification
Blocked By: | Blocking:
----------------------------+---------------------------
Within function bsp_interrupt_raise ther is code active despite described
as being dangerous and only to be used for test purposes.
It would be a good idea to insert a pragma in the code to present a
warning when this is included/used. -> "#pragma GCC warning message"
**Additional Notes:**
To raise an IRQ# from 0-15 there is a proper register that permits that,
but to raise IRQ# from 31-16 it is needed to write on top of the pending
associated IRQ bit, which can override an already IRQ pending in that
line. That is why that code may be dangerous and in the case of forcing
IRQ# from 31-16 can only be used for testing.
This ticket was raised as an outcome of the Independent SW Verification
and Validation (ISVV) for ESA-promoted RTEMS SMP Qualification Data Packs
(https://rtems-qual.io.esa.int). Original ISVV reference for this issue is
RTEMS-SMP-CODE-VER-044.
**File list:**
bsps\sparc\leon3\start\eirq.c (function bsp_interrupt_raise) (line
154-158)
--
Ticket URL: <http://devel.rtems.org/ticket/4846>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list