patch-2.1.23 linux/arch/ppc/kernel/stubs.c

Next file: linux/arch/ppc/kernel/syscalls.c
Previous file: linux/arch/ppc/kernel/signal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/arch/ppc/kernel/stubs.c linux/arch/ppc/kernel/stubs.c
@@ -1,24 +1,56 @@
 /*#include <linux/in.h>*/
 #include <linux/autoconf.h>
+#include <linux/smp.h>
+#include <linux/smp_lock.h>
 
-void sys_iopl(void) { panic("sys_iopl"); }
-void sys_vm86(void) { panic("sys_vm86"); }
-void sys_modify_ldt(void) { panic("sys_modify_ldt"); }
+void sys_iopl(void)
+{
+	lock_kernel();
+	panic("sys_iopl");
+	unlock_kernel();
+}
+void sys_vm86(void)
+{
+	lock_kernel();
+	panic("sys_vm86");
+	unlock_kernel();
+}
+void sys_modify_ldt(void)
+{
+	lock_kernel();
+	panic("sys_modify_ldt");
+	unlock_kernel();
+}
 
-void sys_ipc(void) {panic("sys_ipc"); }
-void sys_newselect(void) {panic("sys_newselect"); }
+void sys_ipc(void)
+{
+	lock_kernel();
+	panic("sys_ipc");
+	unlock_kernel();
+}
+
+void sys_newselect(void)
+{
+	lock_kernel();
+	panic("sys_newselect");
+	unlock_kernel();
+}
 
 #ifndef CONFIG_MODULES
 void
 scsi_register_module(void)
 {
+	lock_kernel();
 	panic("scsi_register_module");
+	unlock_kernel();
 }
 
 void
 scsi_unregister_module(void)
 {
+	lock_kernel();
 	panic("scsi_unregister_module");
+	unlock_kernel();
 }
 #endif
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov