blob: edd63aca179ecd0d95ff22e6dec4025c3d529980 (
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
 | /*
 * 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>
PSEUDO_ERRVAL(__csky_clone, clone, 5)
  cmpnei a0, 0
  bf start_thread
  rts
start_thread:
#ifdef  __CSKYABIV2__
  subi	sp, 4
#endif
  ld.w	a0, (sp, 0x4)
  ld.w	a1, (sp, 0x0)
  addi	sp, 8
  jsr   a1
  DO_CALL(exit, 0)
END(__csky_clone)
 |