Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1182 → Rev 1181

/demos/trunk/fsf/test2.c
File deleted
/demos/trunk/fsf/mpeg2/systems.c
File deleted
/demos/trunk/fsf/mpeg2/subspic.c
File deleted
/demos/trunk/fsf/mpeg2/getblk.c
File deleted
/demos/trunk/fsf/mpeg2/spatscal.c
File deleted
/demos/trunk/fsf/mpeg2/config.h
File deleted
/demos/trunk/fsf/mpeg2/getpic.c
File deleted
/demos/trunk/fsf/mpeg2/gvideo.c
File deleted
/demos/trunk/fsf/mpeg2/gethdr.c
File deleted
/demos/trunk/fsf/mpeg2/idctref.c
File deleted
/demos/trunk/fsf/mpeg2/idct.c
File deleted
/demos/trunk/fsf/mpeg2/getvlc.c
File deleted
/demos/trunk/fsf/mpeg2/mpeg2dec.c
File deleted
/demos/trunk/fsf/mpeg2/getvlc.h
File deleted
/demos/trunk/fsf/mpeg2/const.h
File deleted
/demos/trunk/fsf/mpeg2/mpeg2dec.h
File deleted
/demos/trunk/fsf/mpeg2/store.c
File deleted
/demos/trunk/fsf/mpeg2/getbits.c
File deleted
/demos/trunk/fsf/mpeg2/verify.c
File deleted
/demos/trunk/fsf/mpeg2/global.h
File deleted
/demos/trunk/fsf/mpeg2/motion.c
File deleted
/demos/trunk/fsf/mpeg2/recon.c
File deleted
/demos/trunk/fsf/initfile.c
File deleted
/demos/trunk/fsf/test1.c
41,9 → 41,14
#include "modules/cbs.h"
 
#include "pthread.h"
#include "time.h"
#include "posix.h"
 
#include "fsf_contract.h"
 
#include "cbsstar.h"
#include "posixstar.h"
#include "modules/rr.h"
#include "modules/dummy.h"
 
#include "modules/sem.h"
68,16 → 73,17
/*+ RR tick in us +*/
#define RRTICK 10000
 
extern int cbsstar_level;
extern int posix_level;
 
TIME __kernel_register_levels__(void *arg)
{
struct multiboot_info *mb = (struct multiboot_info *)arg;
int posix_level, cbsstar_level;
 
EDF_register_level(EDF_ENABLE_ALL);
posix_level = POSIX_register_level(RRTICK, 1, mb, 32);
posix_level = POSIX_register_level(RRTICK, RR_MAIN_YES, mb, 32);
dummy_register_level();
cbsstar_level = CBSSTAR_register_level(4, 0);
FSF_register_module(posix_level, cbsstar_level);
dummy_register_level();
 
// for the keyboard...
CBS_register_level(CBS_ENABLE_ALL, 0);
127,6 → 133,8
 
#define TASK_PERIOD 1000000
 
extern struct timespec maxdiffint;
 
void *periodic_star(void *arg)
{
struct timespec actual,end,next_time;
161,6 → 169,8
pthread_mutex_lock(&mux);
printf_xy(0,exec_shadow,WHITE,"Thread %3d Act_per_Second = %8d Mean = %8d Cycle = %8d",
exec_shadow,actpersecond,mean,cycle);
printf_xy(50,20,RED,"<DISTIME Ts%ld:Tns%ld>",maxdiffint.tv_sec,maxdiffint.tv_nsec);
pthread_mutex_unlock(&mux);
 
kern_gettime(&next_time);
/demos/trunk/fsf/makefile
4,18 → 4,10
BASE=../..
include $(BASE)/config/config.mk
 
PROGS= test1 test2
PROGS= test1
 
MPEG2 = ./mpeg2/getbits.o ./mpeg2/getblk.o ./mpeg2/gethdr.o ./mpeg2/getpic.o\
./mpeg2/getvlc.o ./mpeg2/idct.o ./mpeg2/idctref.o ./mpeg2/motion.o\
./mpeg2/mpeg2dec.o ./mpeg2/recon.o ./mpeg2/spatscal.o ./mpeg2/store.o\
./mpeg2/subspic.o ./mpeg2/systems.o ./mpeg2/verify.o ./mpeg2/gvideo.o
 
include $(BASE)/config/example.mk
 
test1:
make -f $(SUBMAKE) APP=test1 INIT= OTHEROBJS= OTHERINCL= SHARKOPT="__OLDCHAR__ __FIRST__"
 
test2:
make -f $(SUBMAKE) APP=test2 INIT= OTHEROBJS="initfile.o $(MPEG2)" OTHERINCL= SHARKOPT="__OLDCHAR__ __GRX__ __FIRST__"