Changeset 279 for EcnlProtoTool/trunk/asp3_dcre/kernel
- Timestamp:
- Apr 29, 2017, 4:33:37 PM (7 years ago)
- Location:
- EcnlProtoTool/trunk/asp3_dcre/kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/kernel/dataqueue.c
r270 r279 6 6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 7 7 * Toyohashi Univ. of Technology, JAPAN 8 * Copyright (C) 2005-201 6by Embedded and Real-Time Systems Laboratory8 * Copyright (C) 2005-2017 by Embedded and Real-Time Systems Laboratory 9 9 * Graduate School of Information Science, Nagoya Univ., JAPAN 10 10 * … … 612 612 CHECK_ID(VALID_DTQID(dtqid)); 613 613 p_dtqcb = get_dtqcb(dtqid); 614 CHECK_ILUSE(p_dtqcb->p_dtqinib->dtqcnt > 0U);615 614 616 615 lock_cpu(); 617 616 if (p_dtqcb->p_dtqinib->dtqatr == TA_NOEXS) { 618 617 ercd = E_NOEXS; 618 } 619 else if (!(p_dtqcb->p_dtqinib->dtqcnt > 0U)) { 620 ercd = E_ILUSE; 619 621 } 620 622 else { … … 628 630 } 629 631 } 630 }631 632 ercd = E_OK; 633 } 632 634 unlock_cpu(); 633 635 -
EcnlProtoTool/trunk/asp3_dcre/kernel/eventflag.c
r270 r279 6 6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 7 7 * Toyohashi Univ. of Technology, JAPAN 8 * Copyright (C) 2005-201 6by Embedded and Real-Time Systems Laboratory8 * Copyright (C) 2005-2017 by Embedded and Real-Time Systems Laboratory 9 9 * Graduate School of Information Science, Nagoya Univ., JAPAN 10 10 * … … 250 250 ercd = FLGID(p_flgcb); 251 251 } 252 unlock_cpu(); 252 253 253 254 error_exit: -
EcnlProtoTool/trunk/asp3_dcre/kernel/task_manage.c
r270 r279 388 388 ercd = E_NOEXS; /*ï¼»NGKI3617ï¼½*/ 389 389 } 390 else if (TSTAT_DORMANT(tstat)) { /*ï¼»NGKI3620ï¼½*/ 391 *p_tskstat = TTS_DMT; 392 } 393 else if (TSTAT_SUSPENDED(tstat)) { 394 if (TSTAT_WAITING(tstat)) { 395 *p_tskstat = TTS_WAS; 390 else { 391 if (TSTAT_DORMANT(tstat)) { /*ï¼»NGKI3620ï¼½*/ 392 *p_tskstat = TTS_DMT; 393 } 394 else if (TSTAT_SUSPENDED(tstat)) { 395 if (TSTAT_WAITING(tstat)) { 396 *p_tskstat = TTS_WAS; 397 } 398 else { 399 *p_tskstat = TTS_SUS; 400 } 401 } 402 else if (TSTAT_WAITING(tstat)) { 403 *p_tskstat = TTS_WAI; 404 } 405 else if (p_tcb == p_runtsk) { 406 *p_tskstat = TTS_RUN; 396 407 } 397 408 else { 398 *p_tskstat = TTS_SUS; 399 } 400 } 401 else if (TSTAT_WAITING(tstat)) { 402 *p_tskstat = TTS_WAI; 403 } 404 else if (p_tcb == p_runtsk) { 405 *p_tskstat = TTS_RUN; 406 } 407 else { 408 *p_tskstat = TTS_RDY; 409 } 410 ercd = E_OK; 409 *p_tskstat = TTS_RDY; 410 } 411 ercd = E_OK; 412 } 411 413 unlock_cpu(); 412 414 -
EcnlProtoTool/trunk/asp3_dcre/kernel/time_manage.c
r270 r279 6 6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 7 7 * Toyohashi Univ. of Technology, JAPAN 8 * Copyright (C) 2005-201 5by Embedded and Real-Time Systems Laboratory8 * Copyright (C) 2005-2017 by Embedded and Real-Time Systems Laboratory 9 9 * Graduate School of Information Science, Nagoya Univ., JAPAN 10 10 * … … 280 280 } 281 281 switch (p_nfyinfo->nfymode & ~0x0fU) { 282 case 0: 283 break; 282 284 case TENFY_SETVAR: 283 285 CHECK_PAR(INTPTR_ALIGN(p_nfyinfo->enfy.setvar.p_var)); … … 352 354 break; 353 355 case TNFY_SNDDTQ: 354 ercd = snd_dtq(p_nfyinfo->nfy.snddtq.dtqid,356 ercd = psnd_dtq(p_nfyinfo->nfy.snddtq.dtqid, 355 357 p_nfyinfo->nfy.snddtq.data); 356 358 break; … … 384 386 break; 385 387 case TENFY_SNDDTQ: 386 (void) snd_dtq(p_nfyinfo->enfy.snddtq.dtqid, (intptr_t) ercd);388 (void) psnd_dtq(p_nfyinfo->enfy.snddtq.dtqid, (intptr_t) ercd); 387 389 break; 388 390 default:
Note:
See TracChangeset
for help on using the changeset viewer.