Changeset 305 for asp3_wo_tecs/trunk/kernel/task.trb
- Timestamp:
- Jun 26, 2017, 6:45:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_wo_tecs/trunk/kernel/task.trb
r304 r305 53 53 # ã®è²¬ä»»ãè² ããªãï¼ 54 54 # 55 # $Id: task.trb 5 72 2016-02-01 14:40:09Z ertl-hiro $55 # $Id: task.trb 596 2016-02-06 17:08:56Z ertl-hiro $ 56 56 # 57 57 … … 65 65 end 66 66 67 def prepare( id, params)67 def prepare(key, params) 68 68 # tskatrãç¡å¹ã®å ´åï¼E_RSATRï¼ï¼»NGKI1028ï¼½ 69 69 #ï¼TA_ACTï¼TA_NOACTQUEï¼TARGET_TSKATR以å¤ã®ããããã»ããããã¦ããå ´åï¼ … … 83 83 end 84 84 85 # stkszãã¹ã¿ãã¯é åã®ãµã¤ãºã¨ãã¦æ£ãããªãå ´åï¼»NGKI1056ï¼½86 if (params[:stksz] & ($CHECK_STKSZ_ALIGN - 1)) != 087 error_wrong_id("E_PAR", params, :stksz, :tskid, "not aligned")88 end89 90 85 # ã¹ã¿ãã¯é åã®è¨å®ï¼»NGKI1041ï¼½ 91 86 if params[:stk] == "NULL" … … 94 89 params[:tinib_stk] = "_kernel_stack_#{params[:tskid]}" 95 90 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 96 96 params[:tinib_stksz] = params[:stksz] 97 97 params[:tinib_stk] = "(void *)(#{params[:stk]})" … … 99 99 end 100 100 101 def generateInib( id, params)101 def generateInib(key, params) 102 102 if $USE_TSKINICTXB == 1 103 tskinictxb = GenerateTskinictxb( id, params)103 tskinictxb = GenerateTskinictxb(key, params) 104 104 else 105 105 tskinictxb = "#{params[:tinib_stksz]}, #{params[:tinib_stk]}" … … 124 124 $kernelCfgC.add("const ID _kernel_torder_table[TNUM_TSKID] = { ") 125 125 $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| 127 127 $kernelCfgC.append(", ") if index > 0 128 128 $kernelCfgC.append("#{params[:tskid]}")
Note:
See TracChangeset
for help on using the changeset viewer.