Ignore:
Timestamp:
Sep 7, 2012, 12:47:18 PM (12 years ago)
Author:
ertl-hiro
Message:

ターゲット依存のエラーチェックコードを追加。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp_wo_cfg/trunk/kernel/interrupt.c

    r49 r50  
    316316        p_intinib = get_intinib(intno);
    317317
    318         p_intinib->intatr = pk_cint->intatr;
    319         p_intinib->intpri = pk_cint->intpri;
    320         ercd = E_OK;
     318        if ((ercd = target_check_cint(intno, pk_cint)) == E_OK) {
     319                p_intinib->intatr = pk_cint->intatr;
     320                p_intinib->intpri = pk_cint->intpri;
     321        }
    321322
    322323  error_exit:
     
    351352                ercd = E_OBJ;
    352353        }
    353         else {
     354        else if ((ercd = target_check_dinh(inhno, pk_dinh)) == E_OK) {
    354355                p_inhinib->inhatr = pk_dinh->inhatr;
    355356                p_inhinib->inthdr = (IINTHDR)(pk_dinh->inthdr);
    356                 ercd = E_OK;
    357357        }
    358358
Note: See TracChangeset for help on using the changeset viewer.