patch-2.1.124 linux/arch/ppc/kernel/process.c

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

diff -u --recursive --new-file v2.1.123/linux/arch/ppc/kernel/process.c linux/arch/ppc/kernel/process.c
@@ -349,6 +349,9 @@
 	regs->gpr[1] = sp;
 	regs->msr = MSR_USER;
 	shove_aux_table(sp);
+	if (last_task_used_math == current)
+		last_task_used_math = 0;
+	current->tss.fpscr = 0;
 }
 
 asmlinkage int sys_clone(int p1, int p2, int p3, int p4, int p5, int p6,
@@ -446,7 +449,7 @@
         int i;
 
         va_start(args, fmt);
-        i=sprintf(buf,fmt,args);
+        i=vsprintf(buf,fmt,args);
 	ll_puts(buf);
         va_end(args);
         return i;
@@ -454,6 +457,19 @@
 
 int lines = 24, cols = 80;
 int orig_x = 0, orig_y = 0;
+
+void puthex(unsigned long val)
+{
+	unsigned char buf[10];
+	int i;
+	for (i = 7;  i >= 0;  i--)
+	{
+		buf[i] = "0123456789ABCDEF"[val & 0x0F];
+		val >>= 4;
+	}
+	buf[8] = '\0';
+	prom_print(buf);
+}
 
 __initfunc(void ll_puts(const char *s))
 {

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