blob: c6cb8b34bc33b1c0eb8fe68f385407f0cf763c28 [file] [log] [blame]
/*
* Copyright (c) 2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <asm_macros.S>
#include <ivy_def.h>
#include <platform_def.h>
.globl ivy_entrypoint
.section .bss.stacks
.balign CACHE_WRITEBACK_GRANULE
.fill IVY_STACKS_SIZE
stacks_end:
func ivy_entrypoint
/* Setup the stack pointer. */
adr x0, stacks_end
mov sp, x0
/* And jump to the C entrypoint. */
b ivy_main
endfunc ivy_entrypoint