]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] Save register stack contents on cpu start
authorJack Steiner <steiner@sgi.com>
Thu, 31 Aug 2006 16:34:47 +0000 (11:34 -0500)
committerTony Luck <tony.luck@intel.com>
Fri, 8 Sep 2006 18:05:13 +0000 (11:05 -0700)
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@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/head.S

index 29236f0c62b5ea20f9597c1e159175c884ef32e2..44d540efa6d1cc4efdce77a896e0aae928f2bab9 100644 (file)
@@ -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
         */