Changeset 51


Ignore:
Timestamp:
Sep 7, 2012, 3:29:19 PM (12 years ago)
Author:
ertl-hiro
Message:

target_check_ctskを呼ぶ場所を変更。メモリを確保した後にチェックしてエラーになると副作用が生じるため。

File:
1 edited

Legend:

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

    r50 r51  
    156156                ercd = E_OBJ;
    157157        }
    158         else {
     158        else if ((ercd = target_check_ctsk(tskid, pk_ctsk)) == E_OK) {
    159159                if (stk == NULL) {
    160160                        stk = kernel_malloc(pk_ctsk->stksz);
     
    164164                        ercd = E_NOMEM;
    165165                }
    166                 else if ((ercd = target_check_ctsk(tskid, pk_ctsk)) == E_OK) {
     166                else {
    167167                        p_tinib = (TINIB *)(p_tcb->p_tinib);
    168168                        p_tinib->tskatr = tskatr;
Note: See TracChangeset for help on using the changeset viewer.