summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/common/stack_gcc.S
blob: 26016882b87b2c3c2836d03c2a7200f49b9a1618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2006-2024, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-05-18     Jesven       the first version
 * 2023-06-24     Shell        Support debug frame for user thread
 */

#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif

#include "rtconfig.h"
#include "asm-generic.h"
#include "asm-fpu.h"
#include "armv8.h"

.section .text

START_POINT(_thread_start)
    blr     x19
    mov     x29, #0
    blr     x20
    b       .   /* never here */
START_POINT_END(_thread_start)