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/smp09/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuites/smptests/smp09') diff --git a/testsuites/smptests/smp09/init.c b/testsuites/smptests/smp09/init.c index 976cb35195..e21ef687ba 100644 --- a/testsuites/smptests/smp09/init.c +++ b/testsuites/smptests/smp09/init.c @@ -30,9 +30,9 @@ rtems_task Init( rtems_task_argument argument ) { - int i; + uint32_t i; char ch; - int cpu_num; + uint32_t cpu_num; rtems_id id; rtems_status_code status; @@ -55,8 +55,8 @@ rtems_task Init( ); directive_failed( status, "task create" ); - cpu_num = bsp_smp_processor_id(); - locked_printf(" CPU %d start task TA%c\n", cpu_num, ch); + cpu_num = rtems_smp_get_current_processor(); + locked_printf(" CPU %" PRIu32 " start task TA%c\n", cpu_num, ch); status = rtems_task_start( id, Test_task, i+1 ); directive_failed( status, "task start" ); -- cgit v1.2.3