Changeset 3ef2d17 in rtems


Ignore:
Timestamp:
Feb 5, 2014, 12:59:07 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3d77001
Parents:
d212acb7
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/14 12:59:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/05/14 14:46:29)
Message:

bsp/leon3: Install IPI handler early

Install inter-processor interrupt (IPI) handler before secondary CPUs
are started. This ensures that secondary CPUs fetch the newly installed
handler.

Remove superfluous return statement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/smp/smp_leon3.c

    rd212acb7 r3ef2d17  
    8383  #endif
    8484
    85   if ( found_cpus == 1 )
    86     return 1;
     85  if ( found_cpus > 1 ) {
     86    LEON_Unmask_interrupt(LEON3_MP_IRQ);
     87    set_vector(bsp_ap_ipi_isr, LEON_TRAP_TYPE(LEON3_MP_IRQ), 1);
     88  }
    8789
    8890  for ( cpu=1 ; cpu < found_cpus ; cpu++ ) {
     
    107109      );
    108110    #endif
    109   }
    110 
    111   if ( found_cpus > 1 ) {
    112     LEON_Unmask_interrupt(LEON3_MP_IRQ);
    113     set_vector(bsp_ap_ipi_isr, LEON_TRAP_TYPE(LEON3_MP_IRQ), 1);
    114111  }
    115112  return found_cpus;
Note: See TracChangeset for help on using the changeset viewer.