Antonio Nino Diaz | f257efd | 2019-03-28 13:16:04 +0000 | [diff] [blame] | 1 | /* |
| 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 |
| 16 | stacks_end: |
| 17 | |
| 18 | func 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 | |
| 27 | endfunc quark_entrypoint |