diff options
Diffstat (limited to 'arch/um/kernel')
| -rw-r--r-- | arch/um/kernel/exec.c | 13 | ||||
| -rw-r--r-- | arch/um/kernel/internal.h | 1 | ||||
| -rw-r--r-- | arch/um/kernel/signal.c | 2 | ||||
| -rw-r--r-- | arch/um/kernel/smp.c | 1 | ||||
| -rw-r--r-- | arch/um/kernel/syscall.c | 1 | 
5 files changed, 5 insertions, 13 deletions
diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index f5d7f4569ba..fda30d21fb9 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c @@ -15,6 +15,7 @@  #include "mem_user.h"  #include "skas.h"  #include "os.h" +#include "internal.h"  void flush_thread(void)  { @@ -42,23 +43,11 @@ void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp)  	PT_REGS_SP(regs) = esp;  } -#ifdef CONFIG_TTY_LOG -extern void log_exec(char **argv, void *tty); -#endif -  static long execve1(char *file, char __user * __user *argv,  		    char __user *__user *env)  {  	long error; -#ifdef CONFIG_TTY_LOG -	struct tty_struct *tty; -	mutex_lock(&tty_mutex); -	tty = get_current_tty(); -	if (tty) -		log_exec(argv, tty); -	mutex_unlock(&tty_mutex); -#endif  	error = do_execve(file, argv, env, ¤t->thread.regs);  	if (error == 0) {  		task_lock(current); diff --git a/arch/um/kernel/internal.h b/arch/um/kernel/internal.h new file mode 100644 index 00000000000..3bda43c7a78 --- /dev/null +++ b/arch/um/kernel/internal.h @@ -0,0 +1 @@ +extern long um_execve(char *file, char __user *__user *argv, char __user *__user *env); diff --git a/arch/um/kernel/signal.c b/arch/um/kernel/signal.c index b0fce720c4d..b5c094c4ade 100644 --- a/arch/um/kernel/signal.c +++ b/arch/um/kernel/signal.c @@ -11,7 +11,7 @@  #include <asm/unistd.h>  #include "frame_kern.h"  #include "kern_util.h" -#include "sigcontext.h" +#include <sysdep/sigcontext.h>  EXPORT_SYMBOL(block_signals);  EXPORT_SYMBOL(unblock_signals); diff --git a/arch/um/kernel/smp.c b/arch/um/kernel/smp.c index be2d50c3aa9..04577214284 100644 --- a/arch/um/kernel/smp.c +++ b/arch/um/kernel/smp.c @@ -85,6 +85,7 @@ static int idle_proc(void *cpup)  	while (!cpu_isset(cpu, smp_commenced_mask))  		cpu_relax(); +	notify_cpu_starting(cpu);  	cpu_set(cpu, cpu_online_map);  	default_idle();  	return 0; diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c index 128ee85bc8d..c4df705b835 100644 --- a/arch/um/kernel/syscall.c +++ b/arch/um/kernel/syscall.c @@ -12,6 +12,7 @@  #include "asm/mman.h"  #include "asm/uaccess.h"  #include "asm/unistd.h" +#include "internal.h"  long sys_fork(void)  {  | 
