Signed-off-by: Guo Ren <ren_guo(a)c-sky.com>
---
ldso/ldso/csky/dl-startup.h | 7 +++++++
ldso/ldso/csky/dl-syscalls.h | 7 +++++++
ldso/ldso/csky/dl-sysdep.h | 7 +++++++
ldso/ldso/csky/elfinterp.c | 7 +++++++
ldso/ldso/csky/read_tp.S | 7 +++++++
ldso/ldso/csky/resolve.S | 7 +++++++
libc/string/csky/cskyv1/memcpy.S | 7 +++++++
libc/string/csky/cskyv1/strcmp.S | 7 +++++++
libc/string/csky/cskyv1/strcpy.S | 7 +++++++
libc/string/csky/cskyv2/abiv2_memcpy.S | 7 +++++++
libc/string/csky/cskyv2/abiv2_strcmp.S | 7 +++++++
libc/string/csky/cskyv2/abiv2_strcpy.S | 7 +++++++
libc/string/csky/cskyv2/macro.S | 7 +++++++
libc/string/csky/memcpy.S | 7 +++++++
libc/string/csky/strcmp.S | 7 +++++++
libc/string/csky/strcpy.S | 7 +++++++
libc/sysdeps/linux/csky/__longjmp.S | 7 +++++++
libc/sysdeps/linux/csky/__syscall_error.c | 7 +++++++
libc/sysdeps/linux/csky/bits/atomic.h | 7 +++++++
libc/sysdeps/linux/csky/bits/endian.h | 7 +++++++
libc/sysdeps/linux/csky/bits/fcntl.h | 7 +++++++
libc/sysdeps/linux/csky/bits/fenv.h | 7 +++++++
libc/sysdeps/linux/csky/bits/kernel_stat.h | 7 +++++++
libc/sysdeps/linux/csky/bits/kernel_types.h | 7 +++++++
libc/sysdeps/linux/csky/bits/mathinline.h | 7 +++++++
libc/sysdeps/linux/csky/bits/setjmp.h | 7 +++++++
libc/sysdeps/linux/csky/bits/shm.h | 7 +++++++
libc/sysdeps/linux/csky/bits/sigcontextinfo.h | 7 +++++++
libc/sysdeps/linux/csky/bits/stackinfo.h | 7 +++++++
libc/sysdeps/linux/csky/bits/syscalls.h | 7 +++++++
libc/sysdeps/linux/csky/bits/uClibc_arch_features.h | 7 +++++++
libc/sysdeps/linux/csky/bits/wordsize.h | 7 +++++++
libc/sysdeps/linux/csky/cacheflush.c | 7 +++++++
libc/sysdeps/linux/csky/clone.c | 7 +++++++
libc/sysdeps/linux/csky/crt1.S | 7 +++++++
libc/sysdeps/linux/csky/crti.S | 7 +++++++
libc/sysdeps/linux/csky/crtn.S | 7 +++++++
libc/sysdeps/linux/csky/csky_clone.S | 7 +++++++
libc/sysdeps/linux/csky/jmpbuf-unwind.h | 7 +++++++
libc/sysdeps/linux/csky/libc-read_tp.S | 7 +++++++
libc/sysdeps/linux/csky/setjmp.S | 7 +++++++
libc/sysdeps/linux/csky/sys/cachectl.h | 7 +++++++
libc/sysdeps/linux/csky/sys/procfs.h | 7 +++++++
libc/sysdeps/linux/csky/sys/ucontext.h | 7 +++++++
libc/sysdeps/linux/csky/sys/user.h | 7 +++++++
libc/sysdeps/linux/csky/sysdep.h | 7 +++++++
libc/sysdeps/linux/csky/vfork.S | 7 +++++++
libpthread/nptl/sysdeps/csky/dl-tls.h | 7 +++++++
libpthread/nptl/sysdeps/csky/libc-tls.c | 7 +++++++
libpthread/nptl/sysdeps/csky/pthread_spin_lock.S | 7 +++++++
libpthread/nptl/sysdeps/csky/pthread_spin_trylock.S | 7 +++++++
libpthread/nptl/sysdeps/csky/pthreaddef.h | 7 +++++++
libpthread/nptl/sysdeps/csky/tls.h | 7 +++++++
libpthread/nptl/sysdeps/unix/sysv/linux/csky/createthread.c | 7 +++++++
libpthread/nptl/sysdeps/unix/sysv/linux/csky/sysdep-cancel.h | 7 +++++++
55 files changed, 385 insertions(+)
diff --git a/ldso/ldso/csky/dl-startup.h b/ldso/ldso/csky/dl-startup.h
index 0a74ab6..a5bcd9d 100644
--- a/ldso/ldso/csky/dl-startup.h
+++ b/ldso/ldso/csky/dl-startup.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifdef __CSKYABIV2__
__asm__ (
diff --git a/ldso/ldso/csky/dl-syscalls.h b/ldso/ldso/csky/dl-syscalls.h
index f40c4fd..703732b 100644
--- a/ldso/ldso/csky/dl-syscalls.h
+++ b/ldso/ldso/csky/dl-syscalls.h
@@ -1 +1,8 @@
+/*
+ * 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.
+ */
+
/* stub for arch-specific syscall issues */
diff --git a/ldso/ldso/csky/dl-sysdep.h b/ldso/ldso/csky/dl-sysdep.h
index c78dd81..04aae68 100644
--- a/ldso/ldso/csky/dl-sysdep.h
+++ b/ldso/ldso/csky/dl-sysdep.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Define this if the system uses RELOCA. */
#define ELF_USES_RELOCA
diff --git a/ldso/ldso/csky/elfinterp.c b/ldso/ldso/csky/elfinterp.c
index 1469c28..9dba2a0 100644
--- a/ldso/ldso/csky/elfinterp.c
+++ b/ldso/ldso/csky/elfinterp.c
@@ -1,3 +1,10 @@
+/*
+ * 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 "ldso.h"
unsigned long
diff --git a/ldso/ldso/csky/read_tp.S b/ldso/ldso/csky/read_tp.S
index ef8d509..d9be325 100644
--- a/ldso/ldso/csky/read_tp.S
+++ b/ldso/ldso/csky/read_tp.S
@@ -1,3 +1,10 @@
+/*
+ * 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
diff --git a/ldso/ldso/csky/resolve.S b/ldso/ldso/csky/resolve.S
index 46a4363..7db74d6 100644
--- a/ldso/ldso/csky/resolve.S
+++ b/ldso/ldso/csky/resolve.S
@@ -1,4 +1,11 @@
/*
+ * 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.
+ */
+
+/*
* This function is not called directly. It is jumped when attempting to use a
* symbol that has not yet been resolved.
*
diff --git a/libc/string/csky/cskyv1/memcpy.S b/libc/string/csky/cskyv1/memcpy.S
index dfa7f64..1b33258 100644
--- a/libc/string/csky/cskyv1/memcpy.S
+++ b/libc/string/csky/cskyv1/memcpy.S
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
.macro GET_FRONT_BITS rx ry
#ifdef __cskyLE__
lsr \rx, \ry
diff --git a/libc/string/csky/cskyv1/strcmp.S b/libc/string/csky/cskyv1/strcmp.S
index e22f29e..e16c28a 100644
--- a/libc/string/csky/cskyv1/strcmp.S
+++ b/libc/string/csky/cskyv1/strcmp.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <features.h>
#include <endian.h>
diff --git a/libc/string/csky/cskyv1/strcpy.S b/libc/string/csky/cskyv1/strcpy.S
index c2f1e7a..8518d7f 100644
--- a/libc/string/csky/cskyv1/strcpy.S
+++ b/libc/string/csky/cskyv1/strcpy.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <features.h>
#include <endian.h>
diff --git a/libc/string/csky/cskyv2/abiv2_memcpy.S
b/libc/string/csky/cskyv2/abiv2_memcpy.S
index c112ec0..4bbb7a3 100644
--- a/libc/string/csky/cskyv2/abiv2_memcpy.S
+++ b/libc/string/csky/cskyv2/abiv2_memcpy.S
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
.macro GET_FRONT_BITS rx ry
#ifdef __cskyLE__
lsr \rx, \ry
diff --git a/libc/string/csky/cskyv2/abiv2_strcmp.S
b/libc/string/csky/cskyv2/abiv2_strcmp.S
index 202da7c..8d7fa04 100644
--- a/libc/string/csky/cskyv2/abiv2_strcmp.S
+++ b/libc/string/csky/cskyv2/abiv2_strcmp.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <endian.h>
#include "macro.S"
diff --git a/libc/string/csky/cskyv2/abiv2_strcpy.S
b/libc/string/csky/cskyv2/abiv2_strcpy.S
index 20262fe..cc6cafe 100644
--- a/libc/string/csky/cskyv2/abiv2_strcpy.S
+++ b/libc/string/csky/cskyv2/abiv2_strcpy.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <endian.h>
#include "macro.S"
diff --git a/libc/string/csky/cskyv2/macro.S b/libc/string/csky/cskyv2/macro.S
index 047645c..1b78ce8 100644
--- a/libc/string/csky/cskyv2/macro.S
+++ b/libc/string/csky/cskyv2/macro.S
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
.macro M_BEZ rx, label
bez \rx, \label
.endm
diff --git a/libc/string/csky/memcpy.S b/libc/string/csky/memcpy.S
index 51d258a..5646c26 100644
--- a/libc/string/csky/memcpy.S
+++ b/libc/string/csky/memcpy.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <features.h>
#ifdef __CSKYABIV2__
diff --git a/libc/string/csky/strcmp.S b/libc/string/csky/strcmp.S
index 05a88c9..c05a108 100644
--- a/libc/string/csky/strcmp.S
+++ b/libc/string/csky/strcmp.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <features.h>
#ifdef __CSKYABIV2__
diff --git a/libc/string/csky/strcpy.S b/libc/string/csky/strcpy.S
index dd3be04..a4bdf5c 100644
--- a/libc/string/csky/strcpy.S
+++ b/libc/string/csky/strcpy.S
@@ -1,3 +1,10 @@
+/*
+ * 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 <features.h>
#ifdef __CSKYABIV2__
diff --git a/libc/sysdeps/linux/csky/__longjmp.S b/libc/sysdeps/linux/csky/__longjmp.S
index 66ad626..8dbd3d6 100644
--- a/libc/sysdeps/linux/csky/__longjmp.S
+++ b/libc/sysdeps/linux/csky/__longjmp.S
@@ -1,3 +1,10 @@
+/*
+ * 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>
ENTRY(__longjmp)
diff --git a/libc/sysdeps/linux/csky/__syscall_error.c
b/libc/sysdeps/linux/csky/__syscall_error.c
index 346ce8a..cc1fb59 100644
--- a/libc/sysdeps/linux/csky/__syscall_error.c
+++ b/libc/sysdeps/linux/csky/__syscall_error.c
@@ -1,3 +1,10 @@
+/*
+ * 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 <errno.h>
#include <features.h>
diff --git a/libc/sysdeps/linux/csky/bits/atomic.h
b/libc/sysdeps/linux/csky/bits/atomic.h
index 231d58f..5913813 100644
--- a/libc/sysdeps/linux/csky/bits/atomic.h
+++ b/libc/sysdeps/linux/csky/bits/atomic.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef __CSKY_ATOMIC_H_
#define __CSKY_ATOMIC_H_
diff --git a/libc/sysdeps/linux/csky/bits/endian.h
b/libc/sysdeps/linux/csky/bits/endian.h
index 09af89c..80b77f0 100644
--- a/libc/sysdeps/linux/csky/bits/endian.h
+++ b/libc/sysdeps/linux/csky/bits/endian.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h>
instead."
#endif
diff --git a/libc/sysdeps/linux/csky/bits/fcntl.h b/libc/sysdeps/linux/csky/bits/fcntl.h
index feacdad..859b42f 100644
--- a/libc/sysdeps/linux/csky/bits/fcntl.h
+++ b/libc/sysdeps/linux/csky/bits/fcntl.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _FCNTL_H
# error "Never use <bits/fcntl.h> directly; include <fcntl.h>
instead."
#endif
diff --git a/libc/sysdeps/linux/csky/bits/fenv.h b/libc/sysdeps/linux/csky/bits/fenv.h
index 606fe79..3359e1f 100644
--- a/libc/sysdeps/linux/csky/bits/fenv.h
+++ b/libc/sysdeps/linux/csky/bits/fenv.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _FENV_H
# error "Never use <bits/fenv.h> directly; include <fenv.h>
instead."
#endif
diff --git a/libc/sysdeps/linux/csky/bits/kernel_stat.h
b/libc/sysdeps/linux/csky/bits/kernel_stat.h
index 079a01a..dae77fd 100644
--- a/libc/sysdeps/linux/csky/bits/kernel_stat.h
+++ b/libc/sysdeps/linux/csky/bits/kernel_stat.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _BITS_STAT_STRUCT_H
#define _BITS_STAT_STRUCT_H
diff --git a/libc/sysdeps/linux/csky/bits/kernel_types.h
b/libc/sysdeps/linux/csky/bits/kernel_types.h
index 80c9d59..6c6fe74 100644
--- a/libc/sysdeps/linux/csky/bits/kernel_types.h
+++ b/libc/sysdeps/linux/csky/bits/kernel_types.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Note that we use the exact same include guard #define names
* as asm/posix_types.h. This will avoid gratuitous conflicts
* with the posix_types.h kernel header, and will ensure that
diff --git a/libc/sysdeps/linux/csky/bits/mathinline.h
b/libc/sysdeps/linux/csky/bits/mathinline.h
index d6ab1a2..b1a6330 100644
--- a/libc/sysdeps/linux/csky/bits/mathinline.h
+++ b/libc/sysdeps/linux/csky/bits/mathinline.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifdef __GNUC__
#ifdef __USE_ISOC99
diff --git a/libc/sysdeps/linux/csky/bits/setjmp.h
b/libc/sysdeps/linux/csky/bits/setjmp.h
index c818ec9..8753bbc 100644
--- a/libc/sysdeps/linux/csky/bits/setjmp.h
+++ b/libc/sysdeps/linux/csky/bits/setjmp.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _BITS_SETJMP_H
#define _BITS_SETJMP_H 1
diff --git a/libc/sysdeps/linux/csky/bits/shm.h b/libc/sysdeps/linux/csky/bits/shm.h
index bfb44bb..dced132 100644
--- a/libc/sysdeps/linux/csky/bits/shm.h
+++ b/libc/sysdeps/linux/csky/bits/shm.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _SYS_SHM_H
# error "Never include <bits/shm.h> directly; use <sys/shm.h>
instead."
#endif
diff --git a/libc/sysdeps/linux/csky/bits/sigcontextinfo.h
b/libc/sysdeps/linux/csky/bits/sigcontextinfo.h
index b7e08cf..283b492 100644
--- a/libc/sysdeps/linux/csky/bits/sigcontextinfo.h
+++ b/libc/sysdeps/linux/csky/bits/sigcontextinfo.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Schwab <schwab(a)issan.informatik.uni-dortmund.de>de>, 1998.
diff --git a/libc/sysdeps/linux/csky/bits/stackinfo.h
b/libc/sysdeps/linux/csky/bits/stackinfo.h
index aaf9807..c0bb2dd 100644
--- a/libc/sysdeps/linux/csky/bits/stackinfo.h
+++ b/libc/sysdeps/linux/csky/bits/stackinfo.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _STACKINFO_H
#define _STACKINFO_H 1
diff --git a/libc/sysdeps/linux/csky/bits/syscalls.h
b/libc/sysdeps/linux/csky/bits/syscalls.h
index 04d01f4..e997de9 100644
--- a/libc/sysdeps/linux/csky/bits/syscalls.h
+++ b/libc/sysdeps/linux/csky/bits/syscalls.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _BITS_SYSCALLS_H
#define _BITS_SYSCALLS_H
#ifndef _SYSCALL_H
diff --git a/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
b/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
index ca898ee..1b866cb 100644
--- a/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
+++ b/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
@@ -1,4 +1,11 @@
/*
+ * 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.
+ */
+
+/*
* Track misc arch-specific features that aren't config options
*/
diff --git a/libc/sysdeps/linux/csky/bits/wordsize.h
b/libc/sysdeps/linux/csky/bits/wordsize.h
index 1b5842a..a0b76b3 100644
--- a/libc/sysdeps/linux/csky/bits/wordsize.h
+++ b/libc/sysdeps/linux/csky/bits/wordsize.h
@@ -1 +1,8 @@
+/*
+ * 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.
+ */
+
#define __WORDSIZE 32
diff --git a/libc/sysdeps/linux/csky/cacheflush.c b/libc/sysdeps/linux/csky/cacheflush.c
index 7762c73..37b356a 100644
--- a/libc/sysdeps/linux/csky/cacheflush.c
+++ b/libc/sysdeps/linux/csky/cacheflush.c
@@ -1,2 +1,9 @@
+/*
+ * 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 <sys/syscall.h>
_syscall3(int, cacheflush, void *, addr, int, nbytes, int, op)
diff --git a/libc/sysdeps/linux/csky/clone.c b/libc/sysdeps/linux/csky/clone.c
index 97c30d0..991cb89 100644
--- a/libc/sysdeps/linux/csky/clone.c
+++ b/libc/sysdeps/linux/csky/clone.c
@@ -1,3 +1,10 @@
+/*
+ * 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 <stdarg.h>
#include <sysdep.h>
#include <unistd.h>
diff --git a/libc/sysdeps/linux/csky/crt1.S b/libc/sysdeps/linux/csky/crt1.S
index ae73843..48651d9 100644
--- a/libc/sysdeps/linux/csky/crt1.S
+++ b/libc/sysdeps/linux/csky/crt1.S
@@ -1,3 +1,10 @@
+/*
+ * 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>
.text
diff --git a/libc/sysdeps/linux/csky/crti.S b/libc/sysdeps/linux/csky/crti.S
index e85a81c..e7b045f 100644
--- a/libc/sysdeps/linux/csky/crti.S
+++ b/libc/sysdeps/linux/csky/crti.S
@@ -1,3 +1,10 @@
+/*
+ * 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>
.file "initfini.c"
diff --git a/libc/sysdeps/linux/csky/crtn.S b/libc/sysdeps/linux/csky/crtn.S
index 3814f30..c1c989f 100644
--- a/libc/sysdeps/linux/csky/crtn.S
+++ b/libc/sysdeps/linux/csky/crtn.S
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
.file "initfini.c"
.section .init
diff --git a/libc/sysdeps/linux/csky/csky_clone.S b/libc/sysdeps/linux/csky/csky_clone.S
index 8360469..edd63ac 100644
--- a/libc/sysdeps/linux/csky/csky_clone.S
+++ b/libc/sysdeps/linux/csky/csky_clone.S
@@ -1,3 +1,10 @@
+/*
+ * 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)
diff --git a/libc/sysdeps/linux/csky/jmpbuf-unwind.h
b/libc/sysdeps/linux/csky/jmpbuf-unwind.h
index 30e39f4..15144fe 100644
--- a/libc/sysdeps/linux/csky/jmpbuf-unwind.h
+++ b/libc/sysdeps/linux/csky/jmpbuf-unwind.h
@@ -1,3 +1,10 @@
+/*
+ * 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 <setjmp.h>
#include <stdint.h>
#include <unwind.h>
diff --git a/libc/sysdeps/linux/csky/libc-read_tp.S
b/libc/sysdeps/linux/csky/libc-read_tp.S
index 1974cba..7d1a059 100644
--- a/libc/sysdeps/linux/csky/libc-read_tp.S
+++ b/libc/sysdeps/linux/csky/libc-read_tp.S
@@ -1 +1,8 @@
+/*
+ * 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 <ldso/ldso/csky/read_tp.S>
diff --git a/libc/sysdeps/linux/csky/setjmp.S b/libc/sysdeps/linux/csky/setjmp.S
index daadcb3..03b402b 100644
--- a/libc/sysdeps/linux/csky/setjmp.S
+++ b/libc/sysdeps/linux/csky/setjmp.S
@@ -1,3 +1,10 @@
+/*
+ * 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>
ENTRY(setjmp)
diff --git a/libc/sysdeps/linux/csky/sys/cachectl.h
b/libc/sysdeps/linux/csky/sys/cachectl.h
index 0d45bf0..ad7211d 100644
--- a/libc/sysdeps/linux/csky/sys/cachectl.h
+++ b/libc/sysdeps/linux/csky/sys/cachectl.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _SYS_CACHECTL_H
#define _SYS_CACHECTL_H 1
diff --git a/libc/sysdeps/linux/csky/sys/procfs.h b/libc/sysdeps/linux/csky/sys/procfs.h
index 91c1388..8ee9931 100644
--- a/libc/sysdeps/linux/csky/sys/procfs.h
+++ b/libc/sysdeps/linux/csky/sys/procfs.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/libc/sysdeps/linux/csky/sys/ucontext.h
b/libc/sysdeps/linux/csky/sys/ucontext.h
index 5917688..97e9e5e 100644
--- a/libc/sysdeps/linux/csky/sys/ucontext.h
+++ b/libc/sysdeps/linux/csky/sys/ucontext.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _SYS_UCONTEXT_H
#define _SYS_UCONTEXT_H 1
diff --git a/libc/sysdeps/linux/csky/sys/user.h b/libc/sysdeps/linux/csky/sys/user.h
index 4ab1972..010e548 100644
--- a/libc/sysdeps/linux/csky/sys/user.h
+++ b/libc/sysdeps/linux/csky/sys/user.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _SYS_USER_H
#define _SYS_USER_H 1
diff --git a/libc/sysdeps/linux/csky/sysdep.h b/libc/sysdeps/linux/csky/sysdep.h
index 2fcff68..a44f3ce 100644
--- a/libc/sysdeps/linux/csky/sysdep.h
+++ b/libc/sysdeps/linux/csky/sysdep.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _LINUX_CSKY_SYSDEP_H
#define _LINUX_CSKY_SYSDEP_H 1
diff --git a/libc/sysdeps/linux/csky/vfork.S b/libc/sysdeps/linux/csky/vfork.S
index a28bb32..bca8bb8 100644
--- a/libc/sysdeps/linux/csky/vfork.S
+++ b/libc/sysdeps/linux/csky/vfork.S
@@ -1,3 +1,10 @@
+/*
+ * 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(__vfork, vfork, 0)
PSEUDO_END_ERRVAL(__vfork)
diff --git a/libpthread/nptl/sysdeps/csky/dl-tls.h
b/libpthread/nptl/sysdeps/csky/dl-tls.h
index 70f7e96..ebf1a7d 100644
--- a/libpthread/nptl/sysdeps/csky/dl-tls.h
+++ b/libpthread/nptl/sysdeps/csky/dl-tls.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Type used for the representation of TLS information in the GOT. */
typedef struct
{
diff --git a/libpthread/nptl/sysdeps/csky/libc-tls.c
b/libpthread/nptl/sysdeps/csky/libc-tls.c
index ceb61f8..21aacec 100644
--- a/libpthread/nptl/sysdeps/csky/libc-tls.c
+++ b/libpthread/nptl/sysdeps/csky/libc-tls.c
@@ -1,3 +1,10 @@
+/*
+ * 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 <sysdeps/generic/libc-tls.c>
#include <dl-tls.h>
diff --git a/libpthread/nptl/sysdeps/csky/pthread_spin_lock.S
b/libpthread/nptl/sysdeps/csky/pthread_spin_lock.S
index da6e234..e24cac2 100644
--- a/libpthread/nptl/sysdeps/csky/pthread_spin_lock.S
+++ b/libpthread/nptl/sysdeps/csky/pthread_spin_lock.S
@@ -1,3 +1,10 @@
+/*
+ * 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>
.text
diff --git a/libpthread/nptl/sysdeps/csky/pthread_spin_trylock.S
b/libpthread/nptl/sysdeps/csky/pthread_spin_trylock.S
index 113e94d..2682e4c 100644
--- a/libpthread/nptl/sysdeps/csky/pthread_spin_trylock.S
+++ b/libpthread/nptl/sysdeps/csky/pthread_spin_trylock.S
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#define _ERRNO_H 1
#include <bits/errno.h>
#include <sysdep.h>
diff --git a/libpthread/nptl/sysdeps/csky/pthreaddef.h
b/libpthread/nptl/sysdeps/csky/pthreaddef.h
index da6a0fa..992fced 100644
--- a/libpthread/nptl/sysdeps/csky/pthreaddef.h
+++ b/libpthread/nptl/sysdeps/csky/pthreaddef.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Default stack size. */
#define ARCH_STACK_DEFAULT_SIZE (2 * 1024 * 1024)
diff --git a/libpthread/nptl/sysdeps/csky/tls.h b/libpthread/nptl/sysdeps/csky/tls.h
index 721551c..6a07401 100644
--- a/libpthread/nptl/sysdeps/csky/tls.h
+++ b/libpthread/nptl/sysdeps/csky/tls.h
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
#ifndef _TLS_H
#define _TLS_H 1
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/csky/createthread.c
b/libpthread/nptl/sysdeps/unix/sysv/linux/csky/createthread.c
index bad8b05..9980cc0 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/csky/createthread.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/csky/createthread.c
@@ -1,3 +1,10 @@
+/*
+ * 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.
+ */
+
/* Value passed to 'clone' for initialization of the thread register. */
#define TLS_VALUE (pd + 1)
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/csky/sysdep-cancel.h
b/libpthread/nptl/sysdeps/unix/sysv/linux/csky/sysdep-cancel.h
index 34c43b0..d8ec5bf 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/csky/sysdep-cancel.h
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/csky/sysdep-cancel.h
@@ -1,3 +1,10 @@
+/*
+ * 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>
#include <tls.h>
#ifndef __ASSEMBLER__
--
2.7.4