Ignore:
Timestamp:
Jun 26, 2017, 6:45:41 PM (7 years ago)
Author:
ertl-honda
Message:

3.0.0のリリース版に追従

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_wo_tecs/trunk/kernel/task.trb

    r304 r305  
    5353#   ã®è²¬ä»»ã‚’負わない.
    5454#
    55 #   $Id: task.trb 572 2016-02-01 14:40:09Z ertl-hiro $
     55#   $Id: task.trb 596 2016-02-06 17:08:56Z ertl-hiro $
    5656#
    5757
     
    6565  end
    6666
    67   def prepare(id, params)
     67  def prepare(key, params)
    6868    # tskatrが無効の場合(E_RSATR)[NGKI1028ï¼½
    6969    #(TA_ACT,TA_NOACTQUE,TARGET_TSKATR以外のビットがセットされている場合)
     
    8383    end
    8484
    85     # stkszがスタック領域のサイズとして正しくない場合[NGKI1056ï¼½
    86     if (params[:stksz] & ($CHECK_STKSZ_ALIGN - 1)) != 0
    87       error_wrong_id("E_PAR", params, :stksz, :tskid, "not aligned")
    88     end
    89 
    9085    # スタック領域の設定[NGKI1041ï¼½
    9186    if params[:stk] == "NULL"
     
    9489      params[:tinib_stk] = "_kernel_stack_#{params[:tskid]}"
    9590    else
     91      # stkszがスタック領域のサイズとして正しくない場合[NGKI1056ï¼½
     92      if (params[:stksz] & ($CHECK_STKSZ_ALIGN - 1)) != 0
     93        error_wrong_id("E_PAR", params, :stksz, :tskid, "not aligned")
     94      end
     95
    9696      params[:tinib_stksz] = params[:stksz]
    9797      params[:tinib_stk] = "(void *)(#{params[:stk]})"
     
    9999  end
    100100
    101   def generateInib(id, params)
     101  def generateInib(key, params)
    102102    if $USE_TSKINICTXB == 1
    103       tskinictxb = GenerateTskinictxb(id, params)
     103      tskinictxb = GenerateTskinictxb(key, params)
    104104    else
    105105      tskinictxb = "#{params[:tinib_stksz]}, #{params[:tinib_stk]}"
     
    124124$kernelCfgC.add("const ID _kernel_torder_table[TNUM_TSKID] = { ")
    125125$kernelCfgC.append("\t")
    126 $cfgData[:CRE_TSK].each_with_index do |(id, params), index|
     126$cfgData[:CRE_TSK].each_with_index do |(key, params), index|
    127127  $kernelCfgC.append(", ") if index > 0
    128128  $kernelCfgC.append("#{params[:tskid]}")
Note: See TracChangeset for help on using the changeset viewer.