blob: 7d6b6b26e9e865f294c4c35612b3956147ee1233 [file] [log] [blame]
/*
* Copyright (c) 2017-2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <asm_macros.S>
#include <cactus_def.h>
#include <platform_def.h>
.globl cactus_entrypoint
.section .bss.stacks
.balign CACHE_WRITEBACK_GRANULE
.fill CACTUS_STACKS_SIZE
stacks_end:
func cactus_entrypoint
/* Setup the stack pointer. */
adr x0, stacks_end
mov sp, x0
/* Enable I-Cache */
mrs x0, sctlr_el1
orr x0, x0, #SCTLR_I_BIT
msr sctlr_el1, x0
isb
/* And jump to the C entrypoint. */
b cactus_main
endfunc cactus_entrypoint