bl1_arch_setup.c 596 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <arch.h>
  7. #include <arch_helpers.h>
  8. #include "../bl1_private.h"
  9. /*******************************************************************************
  10. * Function that does the first bit of architectural setup that affects
  11. * execution in the non-secure address space.
  12. ******************************************************************************/
  13. void bl1_arch_setup(void)
  14. {
  15. /* Set the next EL to be AArch64 */
  16. write_scr_el3(read_scr_el3() | SCR_RW_BIT);
  17. }