[PATCH] - Save register stack contents on cpu start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The SN PROM uses the register stack in the slave loop. The contents 
must be preserved for the OS to return to the slave loop via offlining 
a cpu or for kexec. A 'flushrs" is needed to force the stack to be written
to memory prior to changing bspstore.



	Signed-off-by: Jack Steiner <steiner@xxxxxxx>


Index: linux/arch/ia64/kernel/head.S
===================================================================
--- linux.orig/arch/ia64/kernel/head.S	2006-08-31 11:14:49.000000000 -0500
+++ linux/arch/ia64/kernel/head.S	2006-08-31 11:20:37.405590270 -0500
@@ -197,6 +197,11 @@ start_ap:
 	;;
 	srlz.i
 	;;
+ {
+	flushrs				// must be first insn in group
+	srlz.i
+ }
+	;;
 	/*
 	 * Save the region registers, predicate before they get clobbered
 	 */
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux