]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/os-Linux/start_up.c
slub: Remove objsize check in kmem_cache_flags()
[linux-2.6-omap-h63xx.git] / arch / um / os-Linux / start_up.c
index 6d56d15884fdf06655aa46c1eb7900ee8a5068e2..b616e15638fbc8c1aa5a8bdf710862715124de42 100644 (file)
@@ -60,7 +60,8 @@ static int ptrace_child(void)
                 * the UML code itself.
                 */
                ret = 2;
-       _exit(ret);
+
+       exit(ret);
 }
 
 static void fatal_perror(const char *str)
@@ -341,6 +342,8 @@ static void __init check_coredump_limit(void)
 
 void __init os_early_checks(void)
 {
+       int pid;
+
        /* Print out the core dump limits early */
        check_coredump_limit();
 
@@ -350,6 +353,11 @@ void __init os_early_checks(void)
         * kernel is running.
         */
        check_tmpexec();
+
+       pid = start_ptraced_child();
+       if (init_registers(pid))
+               fatal("Failed to initialize default registers");
+       stop_ptraced_child(pid, 1, 1);
 }
 
 static int __init noprocmm_cmd_param(char *str, int* add)
@@ -411,9 +419,6 @@ static inline void check_skas3_ptrace_faultinfo(void)
                        non_fatal("found\n");
        }
 
-       if (init_registers(pid))
-               fatal("Failed to initialize default registers");
-
        stop_ptraced_child(pid, 1, 1);
 }