Changeset 0ae1916b in rtems


Ignore:
Timestamp:
Aug 1, 2017, 6:41:07 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f14da45
Parents:
43cc2b4
git-author:
Sebastian Huber <sebastian.huber@…> (08/01/17 06:41:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/22/17 14:27:02)
Message:

bsp/qoriq: Copy FDT later

We need a ready to use TOC section before we can call bsp_fdt_copy().

Update #3082.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/start/start.S

    r43cc2b4 r0ae1916b  
    3838#define START_STACK r15
    3939#define SAVED_LINK_REGISTER r16
     40#define FDT_REGISTER r17
    4041
    4142        .globl _start
     
    5152
    5253_start:
     54        mr      FDT_REGISTER, r3
    5355        bl      .Linitearly
    54         bl      bsp_fdt_copy
    5556
    5657        /* Get start stack */
     
    7374        LA      r5, bsp_section_rodata_size
    7475        bl      .Lcopy
     76
     77        /* Copy FDT into read-only data */
     78        mr      r3, FDT_REGISTER
     79        bl      bsp_fdt_copy
     80
     81        /* Flush read-only data */
    7582        LA      r3, bsp_section_rodata_begin
    7683        LA      r4, bsp_section_rodata_size
     
    132139
    133140.Linitearly:
    134         /*
    135          * Do not use r3 here, since it holds the FDT base pointer provided by
    136          * the boot loader.
    137          */
    138 
    139141#ifdef __powerpc64__
    140142        mfmsr   r0
Note: See TracChangeset for help on using the changeset viewer.