Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1689 → Rev 1690

/demos/trunk/base/makefile
File deleted
/demos/trunk/base/mdemo.c
70,7 → 70,7
task_activate((PID)a);
}
 
TASK j1()
TASK J1()
{
cprintf("J1: before locking m0\n");
mutex_lock(&m0);
142,7 → 142,7
hard_task_def_mit(m,10000000);
PC_res_default_model(r,0);
SRP_res_default_model(srp,3);
p0 = task_createn("J1", j1, (TASK_MODEL *)&m, &r, &srp, SRP_usemutex(&m0), NULL);
p0 = task_createn("J1", J1, (TASK_MODEL *)&m, &r, &srp, SRP_usemutex(&m0), NULL);
if (p0 == NIL)
{ cprintf("Can't create J1 task...\n"); return 1; }
 
/demos/trunk/base/Makefile
0,0 → 1,125
APPS:= \
sig \
time \
preempt \
aster \
aster1 \
aster2 \
aster3 \
aster4 \
aster5 \
aster6 \
aster7 \
aster8 \
pcidemo \
jointest \
condtest \
intsem \
semdemo \
pidemo \
pcdemo \
srpdemo \
mdemo \
ego \
fly \
cabs
 
S?=../../
include $(S)/mk/App.mk
 
time:
make -f $(S)/Makefile APP=time OTHEROBJS="ihello.o" \
OTHERINCL= SHARKOPT=
 
sig:
make -f $(S)/Makefile APP=sig OTHEROBJS="ihello.o" \
OTHERINCL= SHARKOPT=
 
preempt:
make -f $(S)/Makefile APP=preempt OTHEROBJS="initfile.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
semdemo:
make -f $(S)/Makefile APP=semdemo OTHEROBJS="isemdemo.o" \
OTHERINCL= SHARKOPT=
 
pidemo:
make -f $(S)/Makefile APP=pidemo OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
pcdemo:
make -f $(S)/Makefile APP=pcdemo OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
srpdemo:
make -f $(S)/Makefile APP=srpdemo OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
mdemo:
make -f $(S)/Makefile APP=mdemo OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
aster:
make -f $(S)/Makefile APP=aster OTHEROBJS="initfile.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
aster1:
make -f $(S)/Makefile APP=aster1 OTHEROBJS="iaster1.o" \
OTHERINCL= SHARKOPT=
 
aster2:
make -f $(S)/Makefile APP=aster2 OTHEROBJS="iaster1.o" \
OTHERINCL= SHARKOPT=
 
aster3:
make -f $(S)/Makefile APP=aster3 OTHEROBJS="iaster3.o" \
OTHERINCL= SHARKOPT=
 
aster4:
make -f $(S)/Makefile APP=aster4 OTHEROBJS="iaster4.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
aster5:
make -f $(S)/Makefile APP=aster5 OTHEROBJS="initfile.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
aster6:
make -f $(S)/Makefile APP=aster6 OTHEROBJS="iaster6.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
aster7:
make -f $(S)/Makefile APP=aster7 OTHEROBJS="iaster7.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
aster8:
make -f $(S)/Makefile APP=aster8 OTHEROBJS="iaster8.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __INPUT__ __GRX__"
 
pcidemo:
make -f $(S)/Makefile APP=pcidemo OTHEROBJS="ipcidemo.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __PCI__"
 
jointest:
make -f $(S)/Makefile APP=jointest OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
condtest:
make -f $(S)/Makefile APP=condtest OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
intsem:
make -f $(S)/Makefile APP=intsem OTHEROBJS="imdemo.o" \
OTHERINCL= SHARKOPT=
 
ego:
make -f $(S)/Makefile APP=ego OTHEROBJS="initgraph.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __PCI__ __INPUT__ __FB__"
 
fly:
make -f $(S)/Makefile APP=fly OTHEROBJS="initgraph.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __PCI__ __INPUT__ __FB__"
 
cabs:
make -f $(S)/Makefile APP=cabs OTHEROBJS="initgraph.o" \
OTHERINCL= SHARKOPT="__LINUXC26__ __PCI__ __INPUT__ __FB__"
 
/demos/trunk/base/pcdemo.c
71,7 → 71,7
task_activate((PID)a);
}
 
TASK j0()
TASK J0()
{
cprintf("J0: before locking m0\n");
mutex_lock(&m0);
87,7 → 87,7
}
 
 
TASK j1()
TASK J1()
{
cprintf("J1: before locking m2\n");
mutex_lock(&m2);
144,7 → 144,7
hard_task_def_mit(m, 1000000);
hard_task_def_wcet(m, 20000);
PC_res_default_model(r,0);
p0 = task_create("J0", j0, &m, &r);
p0 = task_create("J0", J0, &m, &r);
if (p0 == NIL)
{ cprintf("Can't create J0 task...\n"); return 1; }
 
152,7 → 152,7
hard_task_def_mit(m, 2100000);
hard_task_def_wcet(m, 20000);
PC_res_default_model(r,1);
p1 = task_create("J1", j1, &m, &r);
p1 = task_create("J1", J1, &m, &r);
if (p1 == NIL)
{ cprintf("Can't create J1 task...\n"); return 1; }
 
/demos/trunk/base/condtest.c
61,7 → 61,7
 
PID p0,p1,p2,p3;
 
TASK j0()
TASK J0()
{
cprintf("J0: before locking m0\n");
mutex_lock(&m0);
77,7 → 77,7
}
 
 
TASK j1()
TASK J1()
{
cprintf("J1: before locking m0\n");
mutex_lock(&m0);
93,7 → 93,7
}
 
 
TASK j2()
TASK J2()
{
 
cprintf("J2: started, waiting t=0.5 sec\n");
134,7 → 134,7
cprintf("J3: unlocked m0 by the cleanup function\n");
}
 
TASK j3()
TASK J3()
{
cprintf("J3: before locking m0\n");
mutex_lock(&m0);
167,19 → 167,19
 
nrt_task_default_model(m);
nrt_task_def_group(m,1);
p0 = task_create("J0", j0, &m, NULL);
p0 = task_create("J0", J0, &m, NULL);
if (p0 == NIL)
{ cprintf("Can't create J0 task...\n"); return 1; }
 
p1 = task_create("J1", j1, &m, NULL);
p1 = task_create("J1", J1, &m, NULL);
if (p1 == NIL)
{ cprintf("Can't create J1 task...\n"); return 1; }
 
p2 = task_create("J2", j2, &m, NULL);
p2 = task_create("J2", J2, &m, NULL);
if (p2 == NIL)
{ cprintf("Can't create J2 task...\n"); return 1; }
 
p3 = task_create("J3", j3, &m, NULL);
p3 = task_create("J3", J3, &m, NULL);
if (p3 == NIL)
{ cprintf("Can't create J3 task...\n"); return 1; }