Changeset 7cb7a5ef in rtems


Ignore:
Timestamp:
Oct 9, 2009, 7:50:33 PM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, master
Children:
c257fb9e
Parents:
031b57c
Message:

2009-10-09 Till Straumann <strauman@…>

  • shared/vmeUniverse/vmeUniverse.c: print message and let vmeUniverseIntLoopbackTst() fail if odd-numbered vector is used (cannot program the chip to reply with such a vector).
Location:
c/src/lib/libbsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/ChangeLog

    r031b57c r7cb7a5ef  
     12009-10-09      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * shared/vmeUniverse/vmeUniverse.c: print message and
     4        let vmeUniverseIntLoopbackTst() fail if odd-numbered
     5        vector is used (cannot program the chip to reply with
     6        such a vector).
     7
    182009-04-28      Chris Johns <chrisj@rtems.org>
    29
  • c/src/lib/libbsp/shared/vmeUniverse/vmeUniverse.c

    r031b57c r7cb7a5ef  
    23782378
    23792379        /* arg check */
    2380         if ( level < 1 || level > 7 || vector > 255 )
     2380        if ( level < 1 || level > 7 || vector > 255 ) {
     2381                fprintf(stderr,"Invalid level or vector argument\n");
    23812382                return -1;
     2383        }
     2384
     2385        if ( (vector & 1) ) {
     2386                fprintf(stderr,"Software interrupts can only use even-numbered vectors, sorry.\n");
     2387                return -1;
     2388        }
    23822389
    23832390        if ( UNIV_REV(base) < 2 && vector != 0 ) {
Note: See TracChangeset for help on using the changeset viewer.