Index: asp3_wo_tecs/trunk/kernel/kernel_check.trb
===================================================================
--- asp3_wo_tecs/trunk/kernel/kernel_check.trb	(revision 304)
+++ asp3_wo_tecs/trunk/kernel/kernel_check.trb	(revision 305)
@@ -53,5 +53,5 @@
 #   ã®è²¬ä»»ãè² ããªãï¼
 # 
-#   $Id: kernel_check.trb 572 2016-02-01 14:40:09Z ertl-hiro $
+#   $Id: kernel_check.trb 588 2016-02-05 12:54:58Z ertl-hiro $
 #  
 
@@ -92,5 +92,5 @@
 $tmax_dtqid = PEEK(SYMBOL("_kernel_tmax_dtqid"), $sizeof_ID)
 
-def checkNotifyHandler(id, params, objid, exinf, nfyhdr)
+def checkNotifyHandler(key, params, objid, exinf, nfyhdr)
   # ãã©ã¡ã¼ã¿ãå¤æ°ã«æ ¼ç´
   nfymode = params[:nfymode]
@@ -244,5 +244,5 @@
 # 
 tinib = SYMBOL("_kernel_tinib_table")
-$cfgData[:CRE_TSK].each do |id, params|
+$cfgData[:CRE_TSK].each do |key, params|
   # ã¿ã¹ã¯ã®å
 é ­çªå°ã®ãã§ãã¯ï¼»NGKI1033ï¼½
@@ -258,5 +258,5 @@
 é ­çªå°ã®ãã§ãã¯ï¼»NGKI1056ï¼½
   if $USE_TSKINICTXB == 1
-    stk = GetStackTskinictxb(id, params)
+    stk = GetStackTskinictxb(key, params)
   else
     stk = PEEK(tinib + $offsetof_TINIB_stk, $sizeof_void_ptr)
@@ -273,39 +273,9 @@
 
 # 
-#  å¨æéç¥ã«é¢ãããã§ãã¯
-# 
-cycinib = SYMBOL("_kernel_cycinib_table")
-$cfgData[:CRE_CYC].each do |id, params|
-  exinf = PEEK(cycinib + $offsetof_CYCINIB_exinf, $sizeof_intptr_t)
-  nfyhdr = PEEK(cycinib + $offsetof_CYCINIB_nfyhdr, $sizeof_FP)
-
-  #	éç¥æ
-å ±ã®ãã§ãã¯
-  checkNotifyHandler(id, params, :cycid, exinf, nfyhdr)
-
-  cycinib += $sizeof_CYCINIB
-end
-
-# 
-#  ã¢ã©ã¼ã éç¥ã«é¢ãããã§ãã¯
-# 
-alminib = SYMBOL("_kernel_alminib_table")
-$cfgData[:CRE_ALM].each do |id, params|
-  exinf = PEEK(alminib + $offsetof_ALMINIB_exinf, $sizeof_intptr_t)
-  nfyhdr = PEEK(alminib + $offsetof_ALMINIB_nfyhdr, $sizeof_FP)
-
-  #	éç¥æ
-å ±ã®ãã§ãã¯
-  checkNotifyHandler(id, params, :almid, exinf, nfyhdr)
-
-  alminib += $sizeof_ALMINIB
-end
-
-# 
 #  åºå®é·ã¡ã¢ãªãã¼ã«ã«é¢ãããã§ãã¯
 # 
 mpfinib = SYMBOL("_kernel_mpfinib_table")
-$cfgData[:CRE_MPF].each do |id, params|
-  mpf = PEEK(alminib + $offsetof_MPFINIB_mpf, $sizeof_void_ptr)
+$cfgData[:CRE_MPF].each do |key, params|
+  mpf = PEEK(mpfinib + $offsetof_MPFINIB_mpf, $sizeof_void_ptr)
 
   # åºå®é·ã¡ã¢ãªãã¼ã«é åã®å
@@ -322,4 +292,34 @@
 
 # 
+#  å¨æéç¥ã«é¢ãããã§ãã¯
+# 
+cycinib = SYMBOL("_kernel_cycinib_table")
+$cfgData[:CRE_CYC].each do |key, params|
+  exinf = PEEK(cycinib + $offsetof_CYCINIB_exinf, $sizeof_intptr_t)
+  nfyhdr = PEEK(cycinib + $offsetof_CYCINIB_nfyhdr, $sizeof_FP)
+
+  #	éç¥æ
+å ±ã®ãã§ãã¯
+  checkNotifyHandler(key, params, :cycid, exinf, nfyhdr)
+
+  cycinib += $sizeof_CYCINIB
+end
+
+# 
+#  ã¢ã©ã¼ã éç¥ã«é¢ãããã§ãã¯
+# 
+alminib = SYMBOL("_kernel_alminib_table")
+$cfgData[:CRE_ALM].each do |key, params|
+  exinf = PEEK(alminib + $offsetof_ALMINIB_exinf, $sizeof_intptr_t)
+  nfyhdr = PEEK(alminib + $offsetof_ALMINIB_nfyhdr, $sizeof_FP)
+
+  #	éç¥æ
+å ±ã®ãã§ãã¯
+  checkNotifyHandler(key, params, :almid, exinf, nfyhdr)
+
+  alminib += $sizeof_ALMINIB
+end
+
+# 
 #  éã¿ã¹ã¯ã³ã³ãã­ã¹ãç¨ã®ã¹ã¿ãã¯é åã«é¢ãããã§ãã¯
 # 
@@ -329,7 +329,7 @@
 é ­çªå°ã®ãã§ãã¯ï¼»NGKI3222ï¼½
 if (istk & ($CHECK_STACK_ALIGN - 1)) != 0
-  error_wrong("E_PAR", $cfgData[:DEF_ICS][0], :istk, "not aligned")
+  error_wrong("E_PAR", $cfgData[:DEF_ICS][1], :istk, "not aligned")
 end
 if $CHECK_STACK_NONNULL == 1 && istk == 0
-  error_wrong("E_PAR", $cfgData[:DEF_ICS][0], :istk, "null")
-end
+  error_wrong("E_PAR", $cfgData[:DEF_ICS][1], :istk, "null")
+end
