Merge branch 'experiments' of git.lfbs.rwth-aachen.de:metalsvm into experiments

This commit is contained in:
Stefan Lankes 2011-12-13 05:42:01 -08:00
commit 022983346e
3 changed files with 14 additions and 11 deletions

View file

@ -100,9 +100,12 @@ static int foo(void* arg)
static int mail_ping(void* arg) {
int i;
icc_mail_ping();
icc_mail_ping_irq();
//icc_mail_ping_jitter();
// icc_mail_ping();
for( i=0; i<5; ++i ) {
icc_mail_ping_irq();
icc_mail_ping_jitter();
}
//icc_irq_ping();
//icc_mail_datarates();
//icc_halt();
@ -425,10 +428,10 @@ int test_init(void)
//create_kernel_task(NULL, join_test, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, producer, , NORMAL_PRIO);
//create_kernel_task(NULL, consumer, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, mail_ping, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, mail_noise, NULL, NORMAL_PRIO);
create_kernel_task(NULL, mail_ping, NULL, NORMAL_PRIO);
create_kernel_task(NULL, mail_noise, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, svm_test, NULL, NORMAL_PRIO);
create_kernel_task(NULL, svm_bench, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, svm_bench, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, pi, NULL, NORMAL_PRIO);
//create_kernel_task(NULL, laplace, NULL, NORMAL_PRIO);
//create_user_task(NULL, "/bin/hello", argv);

View file

@ -298,7 +298,7 @@ int icc_halt(void)
#define ROUNDS 20000
#define CORE_A 0 // sender
#define CORE_B RC_RCCEID[30] // receiver
#define CORE_B 25 // receiver
int icc_send_gic_irq(int core_num) {
volatile uint32_t* irq_request = (volatile uint32_t*)(FPGA_BASE+IRQ_REQUEST+RC_MY_COREID*8);
@ -346,7 +346,7 @@ int icc_mail_ping(void)
/* wait for response */
do {
res = iRCCE_mail_check(iRCCE_MAILBOX_ALL);
res = iRCCE_mail_check(CORE_B);
} while( res != iRCCE_SUCCESS );
/* release mail */
@ -357,7 +357,7 @@ int icc_mail_ping(void)
else {
/* wait for request */
do {
res = iRCCE_mail_check(iRCCE_MAILBOX_ALL);
res = iRCCE_mail_check(CORE_A);
} while( res != iRCCE_SUCCESS );
/* check mail */
@ -538,7 +538,7 @@ int icc_mail_noise(void) {
/* send a mail to each UE */
for( j=0; j<num_ranks; ++j ) {
// if( (j == CORE_A) /* || (j == CORE_B)*/ ) continue;
if( (j == CORE_A) || (j == CORE_B) ) continue;
/* send noise mail */
tmr = rdtsc();

View file

@ -259,7 +259,7 @@ int initd(void* arg)
//netio_init();
#endif
list_root();
// list_root();
test_init();
return 0;