openrisc: header file cleanups
elf.h: We can export some of these symbols to userspace. libc needs them and we just as well provide them as asm/elf.h as copying them into separate libc headers. ptrace.h: Having padding in the user_regs_struct isn't of any particular value and just confuses GDB. spr_defs isn't needed in userspace; libc has its own copy anyway. Signed-off-by: Jonas Bonn <jonas@southpole.se>
This commit is contained in:
@@ -19,12 +19,18 @@
|
||||
#ifndef __ASM_OPENRISC_ELF_H
|
||||
#define __ASM_OPENRISC_ELF_H
|
||||
|
||||
/*
|
||||
* This files is partially exported to userspace. This allows us to keep
|
||||
* the ELF bits in one place which should assist in keeping the kernel and
|
||||
* userspace in sync.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ELF register definitions..
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
#include <linux/ptrace.h>
|
||||
|
||||
/* for struct user_regs_struct definition */
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
/* The OR1K relocation types... not all relevant for module loader */
|
||||
#define R_OR32_NONE 0
|
||||
@@ -62,6 +68,8 @@ typedef unsigned long elf_fpregset_t;
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/*
|
||||
* This is used to ensure we don't load something for the wrong architecture.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user