plat.ld.S 739 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef SYNQUACER_PLAT_LD_S__
  7. #define SYNQUACER_PLAT_LD_S__
  8. #include <lib/xlat_tables/xlat_tables_defs.h>
  9. #define SPM_SHIM_EXCEPTIONS_VMA SP_DRAM
  10. MEMORY {
  11. SP_DRAM (rw): ORIGIN = PLAT_SQ_SP_PRIV_BASE, LENGTH = PLAT_SQ_SP_PRIV_SIZE
  12. }
  13. SECTIONS
  14. {
  15. /*
  16. * Put the page tables in secure DRAM so that the PTW can make cacheable
  17. * accesses, as the core SPM code expects. (The SRAM on SynQuacer does
  18. * not support inner shareable WBWA mappings so it is mapped normal
  19. * non-cacheable)
  20. */
  21. .sp_xlat_table (NOLOAD) : ALIGN(PAGE_SIZE) {
  22. *(.sp_xlat_table)
  23. } >SP_DRAM
  24. }
  25. #endif /* SYNQUACER_PLAT_LD_S__ */