summaryrefslogtreecommitdiff
path: root/ldso/ldso/csky/read_tp.S
blob: d9be32580db9f3d0d0c6842b7a0964a5a46ec64d (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
/*
 * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd.
 *
 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
 * in this tarball.
 */

#include <sysdep.h>

#ifndef NOT_IN_libc
.global __read_tp
#else
.hidden __read_tp
#endif

ENTRY (__read_tp)
#ifdef __CSKYABIV2__
	mov	a0, tls
#else
	trap 3
#endif
	rts
END (__read_tp)