]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc32: Simplified load string emulation error checking
authorKumar Gala <galak@freescale.com>
Sat, 28 May 2005 22:52:13 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 28 May 2005 23:46:16 +0000 (16:46 -0700)
commit04bbdc7442c82aa4dd4112793a6ab47f548cda46
tree775c042e7b5cedf0d28b9d190956c192db49572a
parent762d3886787ebd76e21c1f29b4f344c9a5db88b3
[PATCH] ppc32: Simplified load string emulation error checking

The error checking for emulation of load string instructions was overly
generous and would cause certain valid forms of the instructions to be
treated as illegal.  We drop the range checking since the architecture
allows this to be boundedly undefined.  Tests on CPUs that support these
instructions appear not do cause illegal instruction traps on range errors
and just allow the execution to occur.

Thanks to Kim Phillips for debugging this and figuring out what real HW was
doing.

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/traps.c