This commit is contained in:
root 2011-06-21 12:37:13 +02:00
parent 47d9b41520
commit c3f72f7034

View file

@ -136,7 +136,7 @@ __inline int get_core_no(void)
/* Determine the local IP address from the core number in the
* tile ID register
*/
tmp = ReadConfigReg(local_crb + RCK_TILEID);
tmp = ReadConfigReg(0xF8000000 + 0x100);
x = (tmp>>3) & 0x0f; /* bits 06:03 */
y = (tmp>>7) & 0x0f; /* bits 10:07 */
z = (tmp ) & 0x07; /* bits 02:00 */
@ -185,7 +185,7 @@ void* client_task(void* e)
int test_init(void)
{
if ("get_core_no())
if (get_core_no())
create_kernel_task(NULL,server_task,NULL);
else
create_kernel_task(NULL,client_task,NULL);