Changeset 8e6a407a in rtems


Ignore:
Timestamp:
Sep 22, 2017, 11:48:03 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3ad3849a
Parents:
560acb62
git-author:
Sebastian Huber <sebastian.huber@…> (09/22/17 11:48:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/22/17 12:15:51)
Message:

bsps/arm: Copy FDT only on boot processor

Update #3090.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/start/start.S

    r560acb62 r8e6a407a  
    184184#endif
    185185
     186#ifdef RTEMS_SMP
     187        /* Read MPIDR and get current processor index */
     188        mrc     p15, 0, r7, c0, c0, 5
     189        and     r7, #0xff
     190#endif
     191
    186192#ifdef BSP_START_COPY_FDT_FROM_U_BOOT
     193#ifdef RTEMS_SMP
     194        cmp     r7, #0
     195        bne     1f
     196#endif
    187197        mov     r0, r6
    188         bl bsp_fdt_copy
    189 #endif
    190 
    191 #ifdef RTEMS_SMP
    192         /* Read MPIDR and get current processor index */
    193         mrc     p15, 0, r0, c0, c0, 5
    194         and     r0, #0xff
    195 
     198        bl      bsp_fdt_copy
     1991:
     200#endif
     201
     202#ifdef RTEMS_SMP
    196203        /*
    197204         * Get current per-CPU control and store it in PL1 only Thread ID
     
    199206         */
    200207        ldr     r1, =_Per_CPU_Information
    201         add     r1, r1, r0, asl #PER_CPU_CONTROL_SIZE_LOG2
     208        add     r1, r1, r7, asl #PER_CPU_CONTROL_SIZE_LOG2
    202209        mcr     p15, 0, r1, c13, c0, 4
    203210
    204211        /* Calculate stack offset */
    205212        ldr     r1, =bsp_stack_all_size
    206         mul     r1, r0
     213        mul     r1, r7
    207214#endif
    208215
Note: See TracChangeset for help on using the changeset viewer.