plat.ld.S 823 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef RCAR_PLAT_LD_S
  7. #define RCAR_PLAT_LD_S
  8. #include <lib/xlat_tables/xlat_tables_defs.h>
  9. #include <platform_def.h>
  10. MEMORY {
  11. SRAM (rwx): ORIGIN = BL31_SRAM_BASE, LENGTH = DEVICE_SRAM_SIZE
  12. PRAM (r): ORIGIN = BL31_LIMIT - DEVICE_SRAM_SIZE, LENGTH = DEVICE_SRAM_SIZE
  13. }
  14. SECTIONS
  15. {
  16. /* SRAM_COPY is in PRAM */
  17. . = BL31_LIMIT - DEVICE_SRAM_SIZE;
  18. __SRAM_COPY_START__ = .;
  19. .system_ram : {
  20. /* system ram start is in SRAM */
  21. __system_ram_start__ = .;
  22. *(.system_ram*)
  23. *iic_dvfs.o(.rodata)
  24. __system_ram_end__ = .;
  25. } >SRAM AT>PRAM
  26. ASSERT(__BL31_END__ <= BL31_LIMIT - DEVICE_SRAM_SIZE,
  27. "BL31 image too large - writing on top of SRAM!")
  28. }
  29. #endif /* RCAR_PLAT_LD_S */