add icc_mail_ping to icc.h

This commit is contained in:
Simon Pickartz 2011-05-31 04:57:55 -07:00
parent 4a1930fb9f
commit e59860dde3
3 changed files with 5 additions and 1 deletions

View file

@ -54,6 +54,8 @@ int icc_init(void);
int icc_ping(int ue);
void icc_check(void);
int icc_halt(void);
int icc_mail_ping(void);
#endif
#ifdef __cplusplus

View file

@ -237,6 +237,7 @@ int icc_mail_ping( void )
// iRCCE is not thread save => disable interrupts
flags = irq_nested_disable();
kprintf( "Hello from icc_mail_ping\n" );
// send mail
iRCCE_mail_send( 0, my_ue, 0, NULL, remote_rank );

View file

@ -28,6 +28,7 @@
#include <asm/icc.h>
int STDCALL mail_ping(void* arg) {
kprintf( "Hello from mail_ping\n" );
icc_mail_ping();
return 0;
@ -36,7 +37,7 @@ int STDCALL mail_ping(void* arg) {
int mailbox_test_init(void)
{
char* argv[] = {"/bin/mailbox", NULL};
kprintf( "Hello from mailbox_test_init\n" );
create_user_task(NULL, "/bin/mailbox", argv);
return 0;