diff options
Diffstat (limited to 'arch/um/kernel/skas/process.c')
-rw-r--r-- | arch/um/kernel/skas/process.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/um/kernel/skas/process.c b/arch/um/kernel/skas/process.c index 4da11b3c8ddb..082955d694f3 100644 --- a/arch/um/kernel/skas/process.c +++ b/arch/um/kernel/skas/process.c | |||
@@ -10,25 +10,6 @@ | |||
10 | #include <os.h> | 10 | #include <os.h> |
11 | #include <skas.h> | 11 | #include <skas.h> |
12 | 12 | ||
13 | int new_mm(unsigned long stack) | ||
14 | { | ||
15 | int fd, err; | ||
16 | |||
17 | fd = os_open_file("/proc/mm", of_cloexec(of_write(OPENFLAGS())), 0); | ||
18 | if (fd < 0) | ||
19 | return fd; | ||
20 | |||
21 | if (skas_needs_stub) { | ||
22 | err = map_stub_pages(fd, STUB_CODE, STUB_DATA, stack); | ||
23 | if (err) { | ||
24 | os_close_file(fd); | ||
25 | return err; | ||
26 | } | ||
27 | } | ||
28 | |||
29 | return fd; | ||
30 | } | ||
31 | |||
32 | extern void start_kernel(void); | 13 | extern void start_kernel(void); |
33 | 14 | ||
34 | static int __init start_kernel_proc(void *unused) | 15 | static int __init start_kernel_proc(void *unused) |
@@ -55,14 +36,6 @@ int __init start_uml(void) | |||
55 | { | 36 | { |
56 | stack_protections((unsigned long) &cpu0_irqstack); | 37 | stack_protections((unsigned long) &cpu0_irqstack); |
57 | set_sigstack(cpu0_irqstack, THREAD_SIZE); | 38 | set_sigstack(cpu0_irqstack, THREAD_SIZE); |
58 | if (proc_mm) { | ||
59 | userspace_pid[0] = start_userspace(0); | ||
60 | if (userspace_pid[0] < 0) { | ||
61 | printf("start_uml - start_userspace returned %d\n", | ||
62 | userspace_pid[0]); | ||
63 | exit(1); | ||
64 | } | ||
65 | } | ||
66 | 39 | ||
67 | init_new_thread_signals(); | 40 | init_new_thread_signals(); |
68 | 41 | ||