blob: 9cbed976d6887cfe6133d942e0765bdd32cf156b [file] [log] [blame]
Antonio Nino Diazf257efd2019-03-28 13:16:04 +00001/*
2 * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <asm_macros.S>
8#include <quark_def.h>
9#include <platform_def.h>
10
11 .globl quark_entrypoint
12
13.section .bss.stacks
14 .balign CACHE_WRITEBACK_GRANULE
15 .fill QUARK_STACKS_SIZE
16stacks_end:
17
18func quark_entrypoint
19
20 /* Setup the stack pointer. */
21 adr x0, stacks_end
22 mov sp, x0
23
24 /* And jump to the C entrypoint. */
25 b quark_main
26
27endfunc quark_entrypoint