diff options
author | Maldonado, Sergio E. (GSFC-580.0) <sergio.e.maldonado@nasa.gov> | 2023-02-27 22:43:24 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-04-19 09:55:43 -0500 |
commit | 1fbfc4eeac4b3fc33b640096cd2805cc666c37be (patch) | |
tree | 3ee7f469d3c2857552db4d26fc534d735fd41497 /bsps/microblaze/microblaze_fpga/start/crtinit.S | |
parent | bsps/aarch64: Enable MMU during remaps (diff) | |
download | rtems-1fbfc4eeac4b3fc33b640096cd2805cc666c37be.tar.bz2 |
bsps/microblaze: Allow copying FDT from U-Boot
Diffstat (limited to 'bsps/microblaze/microblaze_fpga/start/crtinit.S')
-rw-r--r-- | bsps/microblaze/microblaze_fpga/start/crtinit.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bsps/microblaze/microblaze_fpga/start/crtinit.S b/bsps/microblaze/microblaze_fpga/start/crtinit.S index d56bee3b19..6c7fc3af23 100644 --- a/bsps/microblaze/microblaze_fpga/start/crtinit.S +++ b/bsps/microblaze/microblaze_fpga/start/crtinit.S @@ -30,6 +30,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <bspopts.h> + .globl _crtinit .align 2 .ent _crtinit @@ -75,7 +77,9 @@ _crtinit: brlid r15, __init /* Invoke language initialization functions */ nop #endif /* __rtems__ */ - +#ifdef BSP_START_COPY_FDT_FROM_U_BOOT /* Boot loaders may pass the device tree in r5 */ + brlid r15, bsp_fdt_copy /* Do not touch r5 until bsp_fdt_copy() is called */ +#endif /* BSP_START_COPY_FDT_FROM_U_BOOT */ addi r6, r0, 0 /* Initialize argc = 1 and argv = NULL and envp = NULL */ addi r7, r0, 0 #ifndef __rtems__ |