Changeset 4a3db517 in rtems


Ignore:
Timestamp:
Dec 5, 2014, 10:07:02 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b657ea4d
Parents:
12072880
Message:

bsps/sparc: Fix trap table initialization

Fixes bug introduced with dff1803cfbec3775fff1b9c34cc707c05494dc3b.

Location:
c/src/lib/libbsp/sparc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/startup/spurious.c

    r12072880 r4a3db517  
    156156    /*
    157157     *  Skip window overflow, underflow, and flush as well as software
    158      *  trap 0 which we will use as a shutdown. Also avoid trap 0x70 - 0x7f
    159      *  which cannot happen and where some of the space is used to pass
    160      *  paramaters to the program.
     158     *  trap 0,9,10 which we will use as a shutdown, IRQ disable, IRQ enable.
     159     *  Also avoid trap 0x70 - 0x7f which cannot happen and where some of the
     160     *  space is used to pass parameters to the program.
    161161     */
    162162
    163163    if (( trap == 5 || trap == 6 ) ||
    164164        (( trap >= 0x11 ) && ( trap <= 0x1f )) ||
    165         (( trap >= 0x70 ) && ( trap <= 0x83 )))
     165        (( trap >= 0x70 ) && ( trap <= 0x83 )) ||
     166        ( trap == 0x80 + SPARC_SWTRAP_IRQDIS ) ||
     167        ( trap == 0x80 + SPARC_SWTRAP_IRQEN ))
    166168      continue;
    167169
  • c/src/lib/libbsp/sparc/leon2/startup/spurious.c

    r12072880 r4a3db517  
    143143    /*
    144144     *  Skip window overflow, underflow, and flush as well as software
    145      *  trap 0 which we will use as a shutdown. Also avoid trap 0x70 - 0x7f
    146      *  which cannot happen and where some of the space is used to pass
    147      *  paramaters to the program.
     145     *  trap 0,9,10 which we will use as a shutdown, IRQ disable, IRQ enable.
     146     *  Also avoid trap 0x70 - 0x7f which cannot happen and where some of the
     147     *  space is used to pass parameters to the program.
    148148     */
    149149
    150150    if (( trap == 5 || trap == 6 ) ||
    151151        (( trap >= 0x11 ) && ( trap <= 0x1f )) ||
    152         (( trap >= 0x70 ) && ( trap <= 0x83 )))
     152        (( trap >= 0x70 ) && ( trap <= 0x83 )) ||
     153        ( trap == 0x80 + SPARC_SWTRAP_IRQDIS ) ||
     154        ( trap == 0x80 + SPARC_SWTRAP_IRQEN ))
    153155      continue;
    154156
  • c/src/lib/libbsp/sparc/leon3/startup/spurious.c

    r12072880 r4a3db517  
    150150     *  trap 0,9,10 which we will use as a shutdown, IRQ disable, IRQ enable.
    151151     *  Also avoid trap 0x70 - 0x7f which cannot happen and where some of the
    152      *  space is used to pass paramaters to the program.
     152     *  space is used to pass parameters to the program.
    153153     */
    154154
Note: See TracChangeset for help on using the changeset viewer.