Changeset 291


Ignore:
Timestamp:
May 7, 2017, 1:04:57 AM (7 years ago)
Author:
nmir-saito
Message:

defstk_success変数の削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rubycfg_ssp/trunk/kernel.trb

    r290 r291  
    203203#
    204204
    205 #
    206 #  共有スタックのコンフィギュレーションに成功したかどうか
    207 #  DEF_STK 処理中にエラーが発生した場合,この変数が false になる.
    208 #
    209 $defstk_success = true
    210 
    211205$kernelCfgC.comment_header("Stack Area for System")
    212206
     
    229223  # 静的API「DEF_STK」が複数ある(E_OBJ)
    230224  if $cfgData[:DEF_STK].size > 1
    231     $defstk_success = false
    232     error("E_OBJ: too many DEF_STK")
     225    error_exit("E_OBJ: too many DEF_STK")
    233226  end
    234227
     
    237230  # DEF_STK の stksz で 0 を指定した場合(E_PAR)
    238231  if params[:stksz] == 0
    239     $defstk_success = false
    240     error_wrong("E_PAR", params, :stksz, "not allowed")
     232    error_exit("E_PAR: '#{params[:stksz]}' is not allowed in DEF_STK", \
     233      "#{params[:_file_]}:#{params[:_line_]}:")
    241234  end
    242235
     
    252245    # stksz がターゲット毎に定まるアライメントサイズの倍数にアライメントされていない場合(E_PAR)
    253246    if (defined? $CHECK_STKSZ_ALIGN) && (($stksz & ($CHECK_STKSZ_ALIGN - 1)) != 0)
    254       $defstk_success = false
    255       error_wrong("E_PAR", params, :stksz, "not aligned")
     247      error_exit("E_PAR: '#{params[:stksz]}' is not aligned in DEF_STK", \
     248        "#{params[:_file_]}:#{params[:_line_]}:")
     249
    256250    end
    257251
     
    280274#  その際,スタックサイズの指定値が実際の割当てサイズより大きいかを確認する.
    281275#
    282 if $defstk_success
    283   result_str = <<EOS
     276result_str = <<EOS
    284277=====================================
    285278Stack size configuration result:
     
    289282EOS
    290283
    291   print(result_str)
    292   if $tstksz + $istksz > $stksz
    293     print("\t!!!WARNING!!!: Estimated stack size is more than the allocated stack size.")
    294     warning("Estimated stack size is more than the allocated stack size.")
    295   end
    296   print("=====================================\n")
    297 end
     284puts result_str
     285if $tstksz + $istksz > $stksz
     286  print("\t!!!WARNING!!!: Estimated stack size is more than the allocated stack size.")
     287  warning("Estimated stack size is more than the allocated stack size.")
     288end
     289puts "=====================================\n"
    298290
    299291#
Note: See TracChangeset for help on using the changeset viewer.