From 39e51758c86754cef5ba4521c0c36578521f73d0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Jun 2013 14:00:38 +0200 Subject: smp: Add and use _CPU_SMP_Get_current_processor() Add and use _SMP_Get_current_processor() and rtems_smp_get_current_processor(). Delete bsp_smp_interrupt_cpu(). Change type of current processor index from int to uint32_t to match _SMP_Processor_count type. --- testsuites/smptests/smpatomic01/tasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/smptests/smpatomic01') diff --git a/testsuites/smptests/smpatomic01/tasks.c b/testsuites/smptests/smpatomic01/tasks.c index 28afad9d9f..65ad81b0b9 100644 --- a/testsuites/smptests/smpatomic01/tasks.c +++ b/testsuites/smptests/smpatomic01/tasks.c @@ -39,7 +39,7 @@ rtems_task Test_task( rtems_task_argument argument ) { - int cpu_num; + uint32_t cpu_num; char name[5]; char *p; @@ -48,7 +48,7 @@ rtems_task Test_task( rtems_test_assert( p != NULL ); /* Get the CPU Number */ - cpu_num = bsp_smp_processor_id(); + cpu_num = rtems_smp_get_current_processor(); /* Print that the task is up and running. */ /* test relaxed barrier */ -- cgit v1.2.3