diff options
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/processor.h | 5 | ||||
-rw-r--r-- | arch/arm/include/asm/ptrace.h | 5 | ||||
-rw-r--r-- | arch/arm/include/asm/system.h | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/unistd.h | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/processor.h index 99afa7498260..06e7d509eaac 100644 --- a/arch/arm/include/asm/processor.h +++ b/arch/arm/include/asm/processor.h | |||
@@ -85,11 +85,6 @@ unsigned long get_wchan(struct task_struct *p); | |||
85 | #define cpu_relax() barrier() | 85 | #define cpu_relax() barrier() |
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | /* | ||
89 | * Create a new kernel thread | ||
90 | */ | ||
91 | extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); | ||
92 | |||
93 | #define task_pt_regs(p) \ | 88 | #define task_pt_regs(p) \ |
94 | ((struct pt_regs *)(THREAD_START_SP + task_stack_page(p)) - 1) | 89 | ((struct pt_regs *)(THREAD_START_SP + task_stack_page(p)) - 1) |
95 | 90 | ||
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h index 355ece523f41..44fe998269d9 100644 --- a/arch/arm/include/asm/ptrace.h +++ b/arch/arm/include/asm/ptrace.h | |||
@@ -254,6 +254,11 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs) | |||
254 | return regs->ARM_sp; | 254 | return regs->ARM_sp; |
255 | } | 255 | } |
256 | 256 | ||
257 | #define current_pt_regs(void) ({ \ | ||
258 | register unsigned long sp asm ("sp"); \ | ||
259 | (struct pt_regs *)((sp | (THREAD_SIZE - 1)) - 7) - 1; \ | ||
260 | }) | ||
261 | |||
257 | #endif /* __KERNEL__ */ | 262 | #endif /* __KERNEL__ */ |
258 | 263 | ||
259 | #endif /* __ASSEMBLY__ */ | 264 | #endif /* __ASSEMBLY__ */ |
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 74542c52f9be..368165e33c1c 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h | |||
@@ -2,7 +2,6 @@ | |||
2 | #include <asm/barrier.h> | 2 | #include <asm/barrier.h> |
3 | #include <asm/compiler.h> | 3 | #include <asm/compiler.h> |
4 | #include <asm/cmpxchg.h> | 4 | #include <asm/cmpxchg.h> |
5 | #include <asm/exec.h> | ||
6 | #include <asm/switch_to.h> | 5 | #include <asm/switch_to.h> |
7 | #include <asm/system_info.h> | 6 | #include <asm/system_info.h> |
8 | #include <asm/system_misc.h> | 7 | #include <asm/system_misc.h> |
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index d9ff5cc3a506..f259921edfe9 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
@@ -478,6 +478,8 @@ | |||
478 | #define __ARCH_WANT_OLD_READDIR | 478 | #define __ARCH_WANT_OLD_READDIR |
479 | #define __ARCH_WANT_SYS_SOCKETCALL | 479 | #define __ARCH_WANT_SYS_SOCKETCALL |
480 | #endif | 480 | #endif |
481 | #define __ARCH_WANT_SYS_EXECVE | ||
482 | #define __ARCH_WANT_KERNEL_EXECVE | ||
481 | 483 | ||
482 | /* | 484 | /* |
483 | * "Conditional" syscalls | 485 | * "Conditional" syscalls |