Ignore:
Timestamp:
Aug 16, 2001, 9:08:28 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f30a0ca9
Parents:
ede9699c
Message:

2001-08-10 Radzislaw Galler <rgaller@…>

  • score/cpu_asm.c (sh_set_irq_priority): Changed interrupt vector number range check and handling of interrupt priority regs to conform SH2 specs.
  • sci/sci_termios.c: New file.
  • include/sci_termios.h: New file.
  • include/Makefile.am (EXTRA_DIST): Added sci_termios.h. (include_sh_HEADERS): Added sci_termios.h.
  • score/ispsh7045.c (isp): Calling an ISR with immediate argument casued negative sign extension for vector numbers of 128 and above. This was fixed.
  • sci/sci.c: Cleaned initialization of SCI registers; added necessary setup for new TERMIOS console cooperation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c

    rede9699c r7ae5125  
    8282   * first check for valid interrupt
    8383   */
    84   if(( irq > 113) || (_Hardware_isr_Table[irq] == _dummy_isp))
     84  if(( irq > 156) || (irq < 64) || (_Hardware_isr_Table[irq] == _dummy_isp))
    8585    return -1;
    8686  /*
     
    103103        case 1: { prioreg = INTC_IPRD; break;}
    104104        case 2: { prioreg = INTC_IPRE; break;}
     105        case 3: { prioreg = INTC_IPRF; break;}
     106        case 4: { prioreg = INTC_IPRG; break;}
     107        case 5: { prioreg = INTC_IPRH; break;}
    105108        default: return -1;
    106109        }
Note: See TracChangeset for help on using the changeset viewer.