add printfs
This commit is contained in:
parent
e59860dde3
commit
11e61b6816
3 changed files with 8 additions and 4 deletions
|
@ -235,13 +235,14 @@ int icc_mail_ping( void )
|
|||
uint32_t flags;
|
||||
int remote_rank = (my_ue+1)%2;
|
||||
|
||||
kprintf( "### Hello from icc_mail_ping\n" );
|
||||
// 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 );
|
||||
|
||||
|
||||
// wait for mail from remote rank
|
||||
iRCCE_MAIL_HEADER* mail;
|
||||
do {
|
||||
|
|
|
@ -28,8 +28,11 @@
|
|||
#include <asm/icc.h>
|
||||
|
||||
int STDCALL mail_ping(void* arg) {
|
||||
kprintf( "Hello from mail_ping\n" );
|
||||
|
||||
kprintf( "### Hello from mail_ping\n" );
|
||||
|
||||
icc_mail_ping();
|
||||
kprintf( "### mail_ping finished\n" );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -37,7 +40,7 @@ int STDCALL mail_ping(void* arg) {
|
|||
int mailbox_test_init(void)
|
||||
{
|
||||
char* argv[] = {"/bin/mailbox", NULL};
|
||||
kprintf( "Hello from mailbox_test_init\n" );
|
||||
kprintf( "### Hello from mailbox_test_init\n" );
|
||||
create_user_task(NULL, "/bin/mailbox", argv);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -114,7 +114,7 @@ int main(void)
|
|||
|
||||
sleep(5);
|
||||
list_root();
|
||||
test_init();
|
||||
//test_init();
|
||||
kprintf( "calling mailbox test ... \n" );
|
||||
mailbox_test_init();
|
||||
kprintf( "mailbox test succeded!\n" );
|
||||
|
|
Loading…
Add table
Reference in a new issue