Changeset 291 for rubycfg_ssp
- Timestamp:
- May 7, 2017, 1:04:57 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rubycfg_ssp/trunk/kernel.trb
r290 r291 203 203 # 204 204 205 #206 # 共有スタックのコンフィギュレーションに成功したかどうか207 # DEF_STK 処理中にエラーが発生した場合,この変数が false になる.208 #209 $defstk_success = true210 211 205 $kernelCfgC.comment_header("Stack Area for System") 212 206 … … 229 223 # 静的API「DEF_STK」が複数ある(E_OBJ) 230 224 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") 233 226 end 234 227 … … 237 230 # DEF_STK の stksz で 0 を指定した場合(E_PAR) 238 231 if params[:stksz] == 0 239 $defstk_success = false240 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_]}:") 241 234 end 242 235 … … 252 245 # stksz がターゲット毎に定まるアライメントサイズの倍数にアライメントされていない場合(E_PAR) 253 246 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 256 250 end 257 251 … … 280 274 # その際,スタックサイズの指定値が実際の割当てサイズより大きいかを確認する. 281 275 # 282 if $defstk_success 283 result_str = <<EOS 276 result_str = <<EOS 284 277 ===================================== 285 278 Stack size configuration result: … … 289 282 EOS 290 283 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 284 puts result_str 285 if $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.") 288 end 289 puts "=====================================\n" 298 290 299 291 #
Note:
See TracChangeset
for help on using the changeset viewer.