From 262e9f085aa4b4c0a3b2bd69d91f609f30f32e70 Mon Sep 17 00:00:00 2001 From: Generic account for RWTHAachen Students Date: Tue, 7 Jun 2011 03:53:37 -0700 Subject: [PATCH] bug fix --- arch/x86/include/asm/icc.h | 1 + arch/x86/scc/icc.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/icc.h b/arch/x86/include/asm/icc.h index f08bd07c..b02be40e 100644 --- a/arch/x86/include/asm/icc.h +++ b/arch/x86/include/asm/icc.h @@ -53,6 +53,7 @@ typedef struct { int icc_init(void); int icc_ping(int ue); void icc_check(void); +void icc_mail_check(void); int icc_halt(void); int icc_mail_ping(void); diff --git a/arch/x86/scc/icc.c b/arch/x86/scc/icc.c index 02c8b80a..9c94a600 100644 --- a/arch/x86/scc/icc.c +++ b/arch/x86/scc/icc.c @@ -238,7 +238,7 @@ int icc_mail_ping( void ) uint64_t timer; int remote_rank = (my_ue+1)%2; - if( !my_rank ) { + if( !my_ue ) { return 0; } @@ -268,7 +268,7 @@ int icc_mail_ping( void ) kprintf( "Response received in %d ticks!\n", timer ); } else { - krpintf( "Response didn't arrive!\n" ); + kprintf( "Response didn't arrive!\n" ); }