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