1. 29 Sep, 2011 2 commits
    • Benjamin Herrenschmidt's avatar
      powerpc/ptrace: Fix build with gcc 4.6 · e69b742a
      Benjamin Herrenschmidt authored
      gcc (rightfully) complains that we are accessing beyond the
      end of the fpr array (we do, to access the fpscr).
      
      The only sane thing to do (whether anything in that code can be
      called remotely sane is debatable) is to special case fpscr and
      handle it as a separate statement.
      
      I initially tried to do it it by making the array access conditional
      to index < PT_FPSCR and using a 3rd else leg but for some reason gcc
      was unable to understand it and still spewed the warning.
      
      So I ended up with something a tad more intricated but it seems to
      build on 32-bit and on 64-bit with and without VSX.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      e69b742a
    • Jimi Xenidis's avatar
      powerpc: Fix xmon for systems without MSR[RI] · 66857b3a
      Jimi Xenidis authored
      Based on patch by David Gibson <dwg@au1.ibm.com>
      
      xmon has a longstanding bug on systems which are SMP-capable but lack
      the MSR[RI] bit.  In these cases, xmon invoked by IPI on secondary
      CPUs will not properly keep quiet, but will print stuff, thereby
      garbling the primary xmon's output.  This patch fixes it, by ignoring
      the RI bit if the processor does not support it.
      
      There's already a version of this for 4xx upstream, which we'll need
      to extend to other RI-lacking CPUs at some point.  For now this adds
      Book3e processors to the mix.
      Signed-off-by: default avatarJimi Xenidis <jimix@pobox.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      66857b3a
  2. 26 Sep, 2011 1 commit
  3. 23 Sep, 2011 2 commits
  4. 22 Sep, 2011 7 commits
  5. 20 Sep, 2011 28 commits