Skip to content

Commit 2bd26b8

Browse files
author
Rajmund Szymanski
committed
updated initialization
1 parent ab22274 commit 2bd26b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

IntrOS/kernel/inc/ostask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct __tsk
8383
******************************************************************************/
8484

8585
#define _TSK_INIT( _state, _stack, _size ) \
86-
{ _OBJ_INIT(), 0, 0, _state, 0, 0, 0, _stack+SSIZE(_size), _stack, { _CTX_INIT() } }
86+
{ _OBJ_INIT(), ID_STOPPED, 0, _state, 0, 0, 0, _stack+SSIZE(_size), _stack, { _CTX_INIT() } }
8787

8888
/******************************************************************************
8989
*

IntrOS/kernel/inc/ostimer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct __tmr
7272
*
7373
******************************************************************************/
7474

75-
#define _TMR_INIT( _state ) { _OBJ_INIT(), 0, 0, _state, 0, 0, 0 }
75+
#define _TMR_INIT( _state ) { _OBJ_INIT(), ID_STOPPED, 0, _state, 0, 0, 0 }
7676

7777
/******************************************************************************
7878
*

0 commit comments

Comments
 (0)