diff options
Diffstat (limited to 'arch/um/kernel/um_arch.c')
-rw-r--r-- | arch/um/kernel/um_arch.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index aa7b067565d9..9f3a207eb81f 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include "initrd.h" | 35 | #include "initrd.h" |
36 | #include "init.h" | 36 | #include "init.h" |
37 | #include "os.h" | 37 | #include "os.h" |
38 | #include "choose-mode.h" | ||
39 | #include "mode_kern.h" | 38 | #include "mode_kern.h" |
40 | #include "mode.h" | 39 | #include "mode.h" |
41 | #include "skas.h" | 40 | #include "skas.h" |
@@ -68,8 +67,7 @@ struct cpuinfo_um boot_cpu_data = { | |||
68 | 67 | ||
69 | unsigned long thread_saved_pc(struct task_struct *task) | 68 | unsigned long thread_saved_pc(struct task_struct *task) |
70 | { | 69 | { |
71 | return os_process_pc(CHOOSE_MODE_PROC(thread_pid_tt, thread_pid_skas, | 70 | return os_process_pc(thread_pid_skas(task)); |
72 | task)); | ||
73 | } | 71 | } |
74 | 72 | ||
75 | /* Changed in setup_arch, which is called in early boot */ | 73 | /* Changed in setup_arch, which is called in early boot */ |
@@ -88,7 +86,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
88 | seq_printf(m, "processor\t: %d\n", index); | 86 | seq_printf(m, "processor\t: %d\n", index); |
89 | seq_printf(m, "vendor_id\t: User Mode Linux\n"); | 87 | seq_printf(m, "vendor_id\t: User Mode Linux\n"); |
90 | seq_printf(m, "model name\t: UML\n"); | 88 | seq_printf(m, "model name\t: UML\n"); |
91 | seq_printf(m, "mode\t\t: %s\n", CHOOSE_MODE("tt", "skas")); | 89 | seq_printf(m, "mode\t\t: skas\n"); |
92 | seq_printf(m, "host\t\t: %s\n", host_info); | 90 | seq_printf(m, "host\t\t: %s\n", host_info); |
93 | seq_printf(m, "bogomips\t: %lu.%02lu\n\n", | 91 | seq_printf(m, "bogomips\t: %lu.%02lu\n\n", |
94 | loops_per_jiffy/(500000/HZ), | 92 | loops_per_jiffy/(500000/HZ), |
@@ -283,8 +281,7 @@ int __init linux_main(int argc, char **argv) | |||
283 | 281 | ||
284 | printf("UML running in %s mode\n", mode); | 282 | printf("UML running in %s mode\n", mode); |
285 | 283 | ||
286 | host_task_size = CHOOSE_MODE_PROC(set_task_sizes_tt, | 284 | host_task_size = set_task_sizes_skas(&task_size); |
287 | set_task_sizes_skas, &task_size); | ||
288 | 285 | ||
289 | /* | 286 | /* |
290 | * Setting up handlers to 'sig_info' struct | 287 | * Setting up handlers to 'sig_info' struct |
@@ -292,7 +289,7 @@ int __init linux_main(int argc, char **argv) | |||
292 | os_fill_handlinfo(handlinfo_kern); | 289 | os_fill_handlinfo(handlinfo_kern); |
293 | 290 | ||
294 | brk_start = (unsigned long) sbrk(0); | 291 | brk_start = (unsigned long) sbrk(0); |
295 | CHOOSE_MODE_PROC(before_mem_tt, before_mem_skas, brk_start); | 292 | before_mem_skas(brk_start); |
296 | /* Increase physical memory size for exec-shield users | 293 | /* Increase physical memory size for exec-shield users |
297 | so they actually get what they asked for. This should | 294 | so they actually get what they asked for. This should |
298 | add zero for non-exec shield users */ | 295 | add zero for non-exec shield users */ |
@@ -357,7 +354,7 @@ int __init linux_main(int argc, char **argv) | |||
357 | stack_protections((unsigned long) &init_thread_info); | 354 | stack_protections((unsigned long) &init_thread_info); |
358 | os_flush_stdout(); | 355 | os_flush_stdout(); |
359 | 356 | ||
360 | return CHOOSE_MODE(start_uml_tt(), start_uml_skas()); | 357 | return start_uml_skas(); |
361 | } | 358 | } |
362 | 359 | ||
363 | extern int uml_exitcode; | 360 | extern int uml_exitcode; |