Commit ed9526b0 authored by David Woodhouse's avatar David Woodhouse
Browse files

Clean up exported headers on CRIS



This fixes most of the issues with exported headers on CRIS, although
we do still need to deal with the asm/arch symlink.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 2a1b181e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
include include/asm-generic/Kbuild.asm

header-y += arch-v10/ arch-v32/

unifdef-y += rs485.h
+2 −0
Original line number Diff line number Diff line
header-y += ptrace.h
header-y += user.h
+2 −0
Original line number Diff line number Diff line
header-y += ptrace.h
header-y += user.h
+2 −1
Original line number Diff line number Diff line
@@ -3,14 +3,15 @@

#ifdef __GNUC__

#ifdef __KERNEL__
#include <asm/arch/byteorder.h>

/* defines are necessary because the other files detect the presence
 * of a defined __arch_swab32, not an inline
 */

#define __arch__swab32(x) ___arch__swab32(x)
#define __arch__swab16(x) ___arch__swab16(x)
#endif /* __KERNEL__ */

#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
#  define __BYTEORDER_HAS_U64__
+5 −3
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
 * ELF register definitions..
 */

#include <asm/arch/elf.h>
#include <asm/user.h>

#define R_CRIS_NONE             0
@@ -46,6 +45,9 @@ typedef unsigned long elf_fpregset_t;
#define ELF_DATA	ELFDATA2LSB
#define ELF_ARCH	EM_CRIS

#ifdef __KERNEL__
#include <asm/arch/elf.h>

/* The master for these definitions is {binutils}/include/elf/cris.h:  */
/* User symbols in this file have a leading underscore.  */
#define EF_CRIS_UNDERSCORE		0x00000001
@@ -87,8 +89,8 @@ typedef unsigned long elf_fpregset_t;

#define ELF_PLATFORM  (NULL)

#ifdef __KERNEL__
#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
#endif

#endif /* __KERNEL__ */

#endif
Loading