Changeset 39e51758 in rtems for testsuites/smptests/smp09


Ignore:
Timestamp:
Jun 14, 2013, 12:00:38 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ca63ae2
Parents:
a7ce0ce
git-author:
Sebastian Huber <sebastian.huber@…> (06/14/13 12:00:38)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/17/13 11:09:49)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smp09/init.c

    ra7ce0ce r39e51758  
    3131)
    3232{
    33   int                i;
     33  uint32_t           i;
    3434  char               ch;
    35   int                cpu_num;
     35  uint32_t           cpu_num;
    3636  rtems_id           id;
    3737  rtems_status_code  status;
     
    5656    directive_failed( status, "task create" );
    5757
    58     cpu_num = bsp_smp_processor_id();
    59     locked_printf(" CPU %d start task TA%c\n", cpu_num, ch);
     58    cpu_num = rtems_smp_get_current_processor();
     59    locked_printf(" CPU %" PRIu32 " start task TA%c\n", cpu_num, ch);
    6060
    6161    status = rtems_task_start( id, Test_task, i+1 );
Note: See TracChangeset for help on using the changeset viewer.