patch-2.3.7 linux/init/main.c
Next file: linux/ipc/shm.c
Previous file: linux/include/linux/umsdos_fs_i.h
Back to the patch index
Back to the overall index
-  Lines: 16
-  Date:
Wed Jun 16 19:26:27 1999
-  Orig file: 
v2.3.6/linux/init/main.c
-  Orig date: 
Tue Jun  1 23:25:48 1999
diff -u --recursive --new-file v2.3.6/linux/init/main.c linux/init/main.c
@@ -1139,6 +1139,7 @@
  * Interrupts are still disabled. Do necessary setups, then
  * enable them
  */
+	lock_kernel();
 	printk(linux_banner);
 	setup_arch(&command_line, &memory_start, &memory_end);
 	memory_start = paging_init(memory_start,memory_end);
@@ -1205,6 +1206,7 @@
 	 */
 	smp_init();
 	kernel_thread(init, NULL, CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
+	unlock_kernel();
 	current->need_resched = 1;
  	cpu_idle(NULL);
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)