Skip to content

Commit

Permalink
Working on 0.9.9:
Browse files Browse the repository at this point in the history
1. All tests done.
  • Loading branch information
shkolnick-kun committed Jan 6, 2016
1 parent 183022d commit 9fc31ff
Show file tree
Hide file tree
Showing 27 changed files with 1,260 additions and 190 deletions.
9 changes: 1 addition & 8 deletions kernel/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ static void _bgrt_pctrl_propagate( BGRT_PCTRL_PROP_ARGS )
case BGRT_PROC_STATE_END:
case BGRT_PROC_STATE_WD_STOPED:
case BGRT_PROC_STATE_DEAD:

{
_bgrt_pctrl_proc_stoped( proc );
}
Expand Down Expand Up @@ -424,7 +423,6 @@ bgrt_st_t _bgrt_sync_set_owner( bgrt_sync_t * sync, bgrt_proc_t * proc )
BGRT_SPIN_LOCK( sync );
_bgrt_sync_assign_owner( sync, proc );


return BGRT_ST_OK;
}
//========================================================================================
Expand All @@ -444,12 +442,10 @@ bgrt_st_t _bgrt_sync_own( bgrt_sync_t * sync, bgrt_flag_t touch )
{
bgrt_proc_t * owner;


if(!sync)
{
return BGRT_ST_ENULL;
}

BGRT_SPIN_LOCK( sync );

owner = sync->owner;
Expand All @@ -476,7 +472,6 @@ bgrt_st_t _bgrt_sync_own( bgrt_sync_t * sync, bgrt_flag_t touch )
{
BGRT_SPIN_FREE( sync );
}

return BGRT_ST_ROLL;
}
}
Expand Down Expand Up @@ -602,7 +597,6 @@ bgrt_st_t _bgrt_sync_sleep( bgrt_sync_t * sync, bgrt_flag_t * touch )
case BGRT_PROC_STATE_RUNNING:
default:
{

_bgrt_sync_sleep_swap_locks( sync, proc );
if( sync->owner == proc )
{
Expand All @@ -618,8 +612,8 @@ bgrt_st_t _bgrt_sync_sleep( bgrt_sync_t * sync, bgrt_flag_t * touch )
_bgrt_sync_proc_stop( proc, BGRT_PROC_STATE_SYNC_SLEEP );
sync->snum++; //Increment sleeping process counter. Caller is going to sleep.
sync_clear = (bgrt_flag_t)0; //No event!
break;
}
break;
}
}

Expand Down Expand Up @@ -974,7 +968,6 @@ bgrt_st_t _bgrt_sync_proc_timeout( bgrt_proc_t * proc )
{
BGRT_SPIN_FREE( sync );
}

return BGRT_ST_OK;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/arch/avr/gcc/avr-test.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<CodeBlocks_workspace_file>
<Workspace title="Workspace">
<Project filename="sched/sched.cbp" />
<Project filename="proc/proc.cbp" />
<Project filename="sync/sync.cbp" active="1" />
<Project filename="proc/proc.cbp" active="1" />
<Project filename="sync/sync.cbp" />
</Workspace>
</CodeBlocks_workspace_file>
4 changes: 2 additions & 2 deletions tests/arch/avr/gcc/libs/native/native.workspace
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="Workspace">
<Project filename="sig/sig.cbp" />
<Project filename="sig/sig.cbp" active="1" />
<Project filename="sem/sem.cbp" />
<Project filename="mutex/mutex.cbp" />
<Project filename="ipc/ipc.cbp" active="1" />
<Project filename="ipc/ipc.cbp" />
</Workspace>
</CodeBlocks_workspace_file>
4 changes: 2 additions & 2 deletions tests/arch/avr/gcc/libs/native/sig/sig.layout
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<File name="../../../../../../../kernel/proc.h" open="0" top="0" tabpos="5">
<Cursor position="35471" topLine="636" />
</File>
<File name="../../../../../../../kernel/sync.c" open="0" top="0" tabpos="7">
<Cursor position="22384" topLine="744" />
<File name="../../../../../../../kernel/sync.c" open="1" top="1" tabpos="0">
<Cursor position="30081" topLine="897" />
</File>
<File name="../../../../../../../kernel/sync.h" open="0" top="0" tabpos="9">
<Cursor position="18806" topLine="360" />
Expand Down
2 changes: 1 addition & 1 deletion tests/arch/avr/gcc/sched/sched.layout
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<Cursor position="10263" topLine="190" />
</File>
<File name="../../../../../kernel/sync.c" open="1" top="1" tabpos="1">
<Cursor position="11696" topLine="970" />
<Cursor position="9360" topLine="968" />
</File>
<File name="../../../../../kernel/sync.h" open="0" top="0" tabpos="3">
<Cursor position="15814" topLine="298" />
Expand Down
9 changes: 6 additions & 3 deletions tests/arch/cm0/gcc/libs/native/ipc/ipc.layout
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
<Cursor position="5566" topLine="118" />
</File>
<File name="../../../../../../../kernel/crit_sec.c" open="0" top="0" tabpos="3">
<Cursor position="6993" topLine="88" />
<Cursor position="6806" topLine="88" />
</File>
<File name="../../../../../../../kernel/index.c" open="0" top="0" tabpos="0">
<Cursor position="6535" topLine="63" />
</File>
<File name="../../../../../../../kernel/syscall.c" open="0" top="0" tabpos="0">
<Cursor position="18994" topLine="360" />
</File>
<File name="../../../../../../../kernel/timer.c" open="0" top="0" tabpos="4">
<Cursor position="6591" topLine="85" />
</File>
<File name="../../../../../../../kernel/xlist.c" open="0" top="0" tabpos="0">
<Cursor position="6792" topLine="80" />
<Cursor position="6424" topLine="80" />
</File>
<File name="../../../../../../../libs/native/ipc.c" open="0" top="0" tabpos="0">
<Cursor position="6926" topLine="99" />
</File>
<File name="../../../../../../main/libs/native/ipc/main.c" open="0" top="0" tabpos="2">
<Cursor position="2648" topLine="79" />
<Cursor position="1721" topLine="34" />
</File>
</CodeBlocks_layout_file>
2 changes: 1 addition & 1 deletion tests/arch/cm0/gcc/libs/native/mutex/mutex.layout
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<Cursor position="6534" topLine="81" />
</File>
<File name="../../../../../../main/libs/native/mutex/main.c" open="0" top="0" tabpos="1">
<Cursor position="2535" topLine="59" />
<Cursor position="1885" topLine="38" />
</File>
</CodeBlocks_layout_file>
2 changes: 1 addition & 1 deletion tests/arch/cm0/gcc/libs/native/sem/sem.layout
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<Cursor position="7258" topLine="170" />
</File>
<File name="../../../../../../main/libs/native/sem/main.c" open="0" top="0" tabpos="1">
<Cursor position="2357" topLine="60" />
<Cursor position="1700" topLine="39" />
</File>
</CodeBlocks_layout_file>
2 changes: 1 addition & 1 deletion tests/arch/cm0/gcc/libs/native/sig/sig.layout
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<Cursor position="6805" topLine="73" />
</File>
<File name="../../../../../../main/libs/native/sig/main.c" open="0" top="0" tabpos="0">
<Cursor position="2067" topLine="94" />
<Cursor position="1384" topLine="55" />
</File>
</CodeBlocks_layout_file>
2 changes: 1 addition & 1 deletion tests/arch/cm0/gcc/proc/proc.layout
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
<Cursor position="655" topLine="15" />
</File>
<File name="../../../../main/proc/main.c" open="0" top="0" tabpos="0">
<Cursor position="5447" topLine="185" />
<Cursor position="3580" topLine="113" />
</File>
</CodeBlocks_layout_file>
62 changes: 31 additions & 31 deletions tests/arch/cm0/gcc/sched/sched.depend
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# depslib dependency file v1.0
1450335151 source:/home/anon/BuguRTOS/0.8.x/bugurtos/arch/cm0/gcc/bugurt_port.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/arch/cm0/gcc/bugurt_port.c
<bugurt.h>

1451650945 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/bugurt.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/bugurt.h
<bugurt_config.h>
"index.h"
"item.h"
Expand All @@ -19,7 +19,7 @@
"syscall.h"
<user_syscall.h>

1449828863 /home/anon/BuguRTOS/0.8.x/bugurtos/tests/arch/cm0/gcc/bugurt_config.h
1452063578 /home/anon/BuguRTOS/0.8.x/bugurtos/tests/arch/cm0/gcc/bugurt_config.h
<libopencmsis/core_cm3.h>

1430829252 /home/anon/BuguRTOS/0.8.x/thirdparty/libopencm3/include/libopencmsis/core_cm3.h
Expand Down Expand Up @@ -206,72 +206,72 @@

1430829290 /home/anon/BuguRTOS/0.8.x/thirdparty/libopencm3/include/libopencmsis/lm3s/irqhandlers.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/index.h
1452063577 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/index.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/item.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/item.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/xlist.h
1452063578 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/xlist.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pitem.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pitem.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pcounter.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pcounter.h

1451651899 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/crit_sec.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/crit_sec.h

1451969774 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/proc.h
1452068855 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/proc.h

1450330794 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sched.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sched.h

1450335440 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/kernel.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/kernel.h

1451650498 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sync.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sync.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/timer.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/timer.h

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/arch/cm0/gcc/bugurt_port.h
1452063577 /home/anon/BuguRTOS/0.8.x/bugurtos/arch/cm0/gcc/bugurt_port.h

1451654345 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/syscall.h
1452063703 /home/anon/BuguRTOS/0.8.x/bugurtos/kernel/syscall.h

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/crit_sec.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/crit_sec.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/index.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/index.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/item.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/item.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/kernel.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/kernel.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pcounter.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pcounter.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pitem.c
1452063577 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/pitem.c
"bugurt.h"

1450329681 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/proc.c
1452068855 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/proc.c
"bugurt.h"

1451967735 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sched.c
1452063703 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sched.c
"bugurt.h"

1451979981 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sync.c
1452094684 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/sync.c
"bugurt.h"

1450956484 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/syscall.c
1452063578 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/syscall.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/timer.c
1452063578 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/timer.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/xlist.c
1452063703 source:/home/anon/BuguRTOS/0.8.x/bugurtos/kernel/xlist.c
"bugurt.h"

1449750701 source:/home/anon/BuguRTOS/0.8.x/bugurtos/tests/arch/cm0/gcc/test_func.c
1452063578 source:/home/anon/BuguRTOS/0.8.x/bugurtos/tests/arch/cm0/gcc/test_func.c
<test_func.h>

1449750701 /home/anon/BuguRTOS/0.8.x/bugurtos/tests/arch/cm0/gcc/test_func.h
1452063578 /home/anon/BuguRTOS/0.8.x/bugurtos/tests/arch/cm0/gcc/test_func.h
<bugurt.h>
<libopencm3/stm32/rcc.h>
<libopencm3/stm32/gpio.h>
Expand Down Expand Up @@ -477,6 +477,6 @@
1430829252 /home/anon/BuguRTOS/0.8.x/thirdparty/libopencm3/include/libopencm3/stm32/l1/exti.h
<libopencm3/stm32/common/exti_common_all.h>

1449827551 source:/home/anon/BuguRTOS/0.8.x/bugurtos/tests/main/sched/main.c
1452063703 source:/home/anon/BuguRTOS/0.8.x/bugurtos/tests/main/sched/main.c
<test_func.h>

8 changes: 4 additions & 4 deletions tests/arch/cm0/gcc/sched/sched.layout
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<CodeBlocks_layout_file>
<ActiveTarget name="Debug" />
<File name="../../../../../arch/cm0/gcc/bugurt_port.c" open="0" top="0" tabpos="1">
<Cursor position="5566" topLine="105" />
<Cursor position="5825" topLine="109" />
</File>
<File name="../../../../../kernel/bugurt.h" open="0" top="0" tabpos="0">
<Cursor position="16405" topLine="420" />
Expand All @@ -17,7 +17,7 @@
<Cursor position="6850" topLine="82" />
</File>
<File name="../../../../../kernel/pitem.c" open="0" top="0" tabpos="0">
<Cursor position="6810" topLine="86" />
<Cursor position="6189" topLine="81" />
</File>
<File name="../../../../../kernel/proc.c" open="0" top="0" tabpos="0">
<Cursor position="10177" topLine="205" />
Expand All @@ -32,7 +32,7 @@
<Cursor position="16848" topLine="353" />
</File>
<File name="../../../../../kernel/sync.c" open="0" top="0" tabpos="1">
<Cursor position="6821" topLine="106" />
<Cursor position="9338" topLine="149" />
</File>
<File name="../../../../../kernel/sync.h" open="0" top="0" tabpos="0">
<Cursor position="32167" topLine="777" />
Expand All @@ -56,6 +56,6 @@
<Cursor position="498" topLine="4" />
</File>
<File name="../../../../main/sched/main.c" open="0" top="0" tabpos="1">
<Cursor position="618" topLine="22" />
<Cursor position="884" topLine="15" />
</File>
</CodeBlocks_layout_file>
Loading

0 comments on commit 9fc31ff

Please sign in to comment.