]> err.no Git - linux-2.6/commit
[POWERPC] Fix potential duplicate entry in SLB shadow buffer
authorPaul Mackerras <paulus@samba.org>
Fri, 10 Aug 2007 11:04:07 +0000 (21:04 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 Aug 2007 11:04:07 +0000 (21:04 +1000)
commitedd0622bd2e8f755c960827e15aa6908c3c5aa94
treea53acb20f1d326ff736d45ecda66a848604a65b2
parentac07860264bd2b18834d3fa3be47032115524cea
[POWERPC] Fix potential duplicate entry in SLB shadow buffer

We were getting a duplicate entry in the SLB shadow buffer in
slb_flush_and_rebolt() if the kernel stack was in the same segment
as PAGE_OFFSET, which on POWER6 causes the hypervisor to terminate
the partition with an error.  This fixes it.

Also we were not creating an SLB entry (or an SLB shadow buffer
entry) for the kernel stack on secondary CPUs when starting the
CPU.  This isn't a major problem, since an appropriate entry will
be created on demand, but this fixes that also for consistency.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/slb.c