patch-2.3.40 linux/arch/arm/kernel/process.c

Next file: linux/arch/arm/kernel/setup.c
Previous file: linux/arch/arm/kernel/head-armv.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/arch/arm/kernel/process.c linux/arch/arm/kernel/process.c
@@ -50,13 +50,13 @@
 static int __init nohlt_setup(char *__unused)
 {
 	hlt_counter = 1;
-	return 0;
+	return 1;
 }
 
 static int __init hlt_setup(char *__unused)
 {
 	hlt_counter = 0;
-	return 0;
+	return 1;
 }
 
 __setup("nohlt", nohlt_setup);
@@ -114,6 +114,7 @@
 
 void machine_power_off(void)
 {
+	arch_power_off();
 }
 
 void show_regs(struct pt_regs * regs)
@@ -284,7 +285,7 @@
 int dump_fpu (struct pt_regs *regs, struct user_fp *fp)
 {
 	if (current->used_math)
-		memcpy(fp, &current->thread.fpstate.soft, sizeof (fp));
+		memcpy(fp, &current->thread.fpstate.soft, sizeof (*fp));
 
 	return current->used_math;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)