diff options
author | Chris Zankel <chris@zankel.net> | 2007-05-31 17:47:01 -0700 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2007-05-31 17:47:01 -0700 |
commit | de4f6e5b41bef50fc981410ae8380f27f4e93bf8 (patch) | |
tree | 39e467255d33f89becf50425b019ce5cf402681f /include/asm-xtensa/ptrace.h | |
parent | 176fd6c96dcbc263eb1c61eae9fe2a33f23a876d (diff) |
[XTENSA] clean-up header files
The header files in the asm-xtensa directory are not clean and
'make headers_check' fails. This is a first patch to fix most of
the header files. It removes unnecessary include statements and
adds some that are required for building the kernel. The linker
script required some updates or the linking stage would fail.
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'include/asm-xtensa/ptrace.h')
-rw-r--r-- | include/asm-xtensa/ptrace.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-xtensa/ptrace.h b/include/asm-xtensa/ptrace.h index 1b7fe363fad..cad83e814d6 100644 --- a/include/asm-xtensa/ptrace.h +++ b/include/asm-xtensa/ptrace.h @@ -11,8 +11,6 @@ #ifndef _XTENSA_PTRACE_H #define _XTENSA_PTRACE_H -#include <asm/variant/core.h> - /* * Kernel stack * @@ -113,6 +111,9 @@ struct pt_regs { }; #ifdef __KERNEL__ + +#include <asm/variant/core.h> + # define task_pt_regs(tsk) ((struct pt_regs*) \ (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1) # define user_mode(regs) (((regs)->ps & 0x00000020)!=0) |