aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/Kconfig17
-rw-r--r--arch/um/Makefile-tt5
-rw-r--r--arch/um/drivers/mconsole_kern.c3
-rw-r--r--arch/um/kernel/process.c4
4 files changed, 2 insertions, 27 deletions
diff --git a/arch/um/Kconfig b/arch/um/Kconfig
index 58f5a141faa9..a967d95603cb 100644
--- a/arch/um/Kconfig
+++ b/arch/um/Kconfig
@@ -95,23 +95,6 @@ config LD_SCRIPT_DYN
95 default y 95 default y
96 depends on !LD_SCRIPT_STATIC 96 depends on !LD_SCRIPT_STATIC
97 97
98config NET
99 bool "Networking support"
100 help
101 Unless you really know what you are doing, you should say Y here.
102 The reason is that some programs need kernel networking support even
103 when running on a stand-alone machine that isn't connected to any
104 other computer. If you are upgrading from an older kernel, you
105 should consider updating your networking tools too because changes
106 in the kernel and the tools often go hand in hand. The tools are
107 contained in the package net-tools, the location and version number
108 of which are given in <file:Documentation/Changes>.
109
110 For a general introduction to Linux networking, it is highly
111 recommended to read the NET-HOWTO, available from
112 <http://www.tldp.org/docs.html#howto>.
113
114
115source "fs/Kconfig.binfmt" 98source "fs/Kconfig.binfmt"
116 99
117config HOSTFS 100config HOSTFS
diff --git a/arch/um/Makefile-tt b/arch/um/Makefile-tt
deleted file mode 100644
index 03f7b10cfd0b..000000000000
--- a/arch/um/Makefile-tt
+++ /dev/null
@@ -1,5 +0,0 @@
1#
2# Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3# Licensed under the GPL
4#
5
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c
index 0f3c7d14a6e3..fabd75f5bb5c 100644
--- a/arch/um/drivers/mconsole_kern.c
+++ b/arch/um/drivers/mconsole_kern.c
@@ -741,7 +741,6 @@ void mconsole_stack(struct mc_request *req)
741{ 741{
742 char *ptr = req->request.data; 742 char *ptr = req->request.data;
743 int pid_requested= -1; 743 int pid_requested= -1;
744 struct task_struct *from = NULL;
745 struct task_struct *to = NULL; 744 struct task_struct *to = NULL;
746 745
747 /* 746 /*
@@ -763,8 +762,6 @@ void mconsole_stack(struct mc_request *req)
763 return; 762 return;
764 } 763 }
765 764
766 from = current;
767
768 to = find_task_by_pid(pid_requested); 765 to = find_task_by_pid(pid_requested);
769 if ((to == NULL) || (pid_requested == 0)) { 766 if ((to == NULL) || (pid_requested == 0)) {
770 mconsole_reply(req, "Couldn't find that pid", 1, 0); 767 mconsole_reply(req, "Couldn't find that pid", 1, 0);
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index 7a291239242b..e6d89ad10a71 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -30,7 +30,7 @@
30 */ 30 */
31struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } }; 31struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } };
32 32
33static inline int external_pid(struct task_struct *task) 33static inline int external_pid(void)
34{ 34{
35 /* FIXME: Need to look up userspace_pid by cpu */ 35 /* FIXME: Need to look up userspace_pid by cpu */
36 return userspace_pid[0]; 36 return userspace_pid[0];
@@ -78,7 +78,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
78static inline void set_current(struct task_struct *task) 78static inline void set_current(struct task_struct *task)
79{ 79{
80 cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task) 80 cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task)
81 { external_pid(task), task }); 81 { external_pid(), task });
82} 82}
83 83
84extern void arch_switch_to(struct task_struct *to); 84extern void arch_switch_to(struct task_struct *to);