Signed-off-by: Guo Ren <ren_guo@c-sky.com>
@@ -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__ (
@@ -1 +1,8 @@
/* stub for arch-specific syscall issues */
/* Define this if the system uses RELOCA. */
#define ELF_USES_RELOCA
#include "ldso.h"
unsigned long
#include <sysdep.h>
#ifndef NOT_IN_libc
/*
* This function is not called directly. It is jumped when attempting to use a
* symbol that has not yet been resolved.
.macro GET_FRONT_BITS rx ry
#ifdef __cskyLE__
lsr \rx, \ry
#include <features.h>
#include <endian.h>
#include "macro.S"
.macro M_BEZ rx, label
bez \rx, \label
.endm
ENTRY(__longjmp)
#include <errno.h>
#ifndef __CSKY_ATOMIC_H_
#define __CSKY_ATOMIC_H_
#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
#endif
#ifndef _FCNTL_H
# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
#ifndef _FENV_H
# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
#ifndef _BITS_STAT_STRUCT_H
#define _BITS_STAT_STRUCT_H
/* 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
#ifdef __GNUC__
#ifdef __USE_ISOC99
#ifndef _BITS_SETJMP_H
#define _BITS_SETJMP_H 1
#ifndef _SYS_SHM_H
# error "Never include <bits/shm.h> directly; use <sys/shm.h> instead."
/* Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>, 1998.
#ifndef _STACKINFO_H
#define _STACKINFO_H 1
#ifndef _BITS_SYSCALLS_H
#define _BITS_SYSCALLS_H
#ifndef _SYSCALL_H
* Track misc arch-specific features that aren't config options
*/
#define __WORDSIZE 32
@@ -1,2 +1,9 @@
#include <sys/syscall.h>
_syscall3(int, cacheflush, void *, addr, int, nbytes, int, op)
#include <stdarg.h>
#include <unistd.h>
.text
.file "initfini.c"
.section .init
PSEUDO_ERRVAL(__csky_clone, clone, 5)
#include <setjmp.h>
#include <stdint.h>
#include <unwind.h>
#include <ldso/ldso/csky/read_tp.S>
ENTRY(setjmp)
#ifndef _SYS_CACHECTL_H
#define _SYS_CACHECTL_H 1
/* Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
#ifndef _SYS_UCONTEXT_H
#define _SYS_UCONTEXT_H 1
#ifndef _SYS_USER_H
#define _SYS_USER_H 1
#ifndef _LINUX_CSKY_SYSDEP_H
#define _LINUX_CSKY_SYSDEP_H 1
PSEUDO_ERRVAL(__vfork, vfork, 0)
PSEUDO_END_ERRVAL(__vfork)
/* Type used for the representation of TLS information in the GOT. */
typedef struct
{
#include <sysdeps/generic/libc-tls.c>
#include <dl-tls.h>
#define _ERRNO_H 1
#include <bits/errno.h>
/* Default stack size. */
#define ARCH_STACK_DEFAULT_SIZE (2 * 1024 * 1024)
#ifndef _TLS_H
#define _TLS_H 1
/* Value passed to 'clone' for initialization of the thread register. */
#define TLS_VALUE (pd + 1)
#include <tls.h>
#ifndef __ASSEMBLER__