···3344#ifdef __GNUC__5566+#ifdef __KERNEL__67#include <asm/arch/byteorder.h>7889/* defines are necessary because the other files detect the presence910 * of a defined __arch_swab32, not an inline1011 */1111-1212#define __arch__swab32(x) ___arch__swab32(x)1313#define __arch__swab16(x) ___arch__swab16(x)1414+#endif /* __KERNEL__ */14151516#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)1617# define __BYTEORDER_HAS_U64__
+5-3
include/asm-cris/elf.h
···55 * ELF register definitions..66 */7788-#include <asm/arch/elf.h>98#include <asm/user.h>1091110#define R_CRIS_NONE 0···4445#define ELF_CLASS ELFCLASS324546#define ELF_DATA ELFDATA2LSB4647#define ELF_ARCH EM_CRIS4848+4949+#ifdef __KERNEL__5050+#include <asm/arch/elf.h>47514852/* The master for these definitions is {binutils}/include/elf/cris.h: */4953/* User symbols in this file have a leading underscore. */···89879088#define ELF_PLATFORM (NULL)91899292-#ifdef __KERNEL__9390#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)9494-#endif9191+9292+#endif /* __KERNEL__ */95939694#endif
···66#ifndef __ARCH_CRIS_POSIX_TYPES_H77#define __ARCH_CRIS_POSIX_TYPES_H8899-#include <asm/bitops.h>1010-119/*1210 * This file is generally used by user-level software, so you need to1311 * be a little careful about namespace pollution etc. Also, we cannot···5153#endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */5254} __kernel_fsid_t;53555454-/* should this ifdef be here ? */5555-5656-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)5656+#ifdef __KERNEL__5757+#include <asm/bitops.h>57585859#undef __FD_SET5960#define __FD_SET(fd,fdsetp) set_bit(fd, (void *)(fdsetp))···6669#undef __FD_ZERO6770#define __FD_ZERO(fdsetp) memset((void *)(fdsetp), 0, __FDSET_LONGS << 2)68716969-#endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */7272+#endif /* __KERNEL__ */70737174#endif /* __ARCH_CRIS_POSIX_TYPES_H */
+1-3
include/asm-cris/unistd.h
···11#ifndef _ASM_CRIS_UNISTD_H_22#define _ASM_CRIS_UNISTD_H_3344-#include <asm/arch/unistd.h>55-64/*75 * This file contains the system call numbers, and stub macros for libc.86 */···297299298300#define NR_syscalls 289299301302302+#include <asm/arch/unistd.h>300303301304#define __ARCH_WANT_IPC_PARSE_VERSION302305#define __ARCH_WANT_OLD_READDIR···321322#define __ARCH_WANT_SYS_SIGPENDING322323#define __ARCH_WANT_SYS_SIGPROCMASK323324#define __ARCH_WANT_SYS_RT_SIGACTION324324-#endif325325326326#ifdef __KERNEL_SYSCALLS__327327