u-boot/post/lib_powerpc
Wolfgang Denk 7ddd4475a8 post/lib_powerpc/multi.c: fix stack overflow error
The code and comment disagreed: the comment claimed that r6...r31
were copied, and consequently the arrays for "src" and "dst" were
declared with 26 entries, but the actual code ("lmw r5,0(r3)" and
"stmw r5,0(r4)") copied _27_ words (r5 through r31), which resulted
in false "POST cpu Error at multi test" messages.

Fix the comment and the array sizes.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Andy Fleming <afleming@gmail.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
2011-12-23 20:08:10 +01:00
..
fpu PPC: fix "Warning: FOO uses hard float, BAR uses soft float". 2011-12-23 20:03:55 +01:00
andi.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
asm.S Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
b.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cmp.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
cmpi.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
complex.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cpu.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cpu_asm.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cr.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
load.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
multi.c post/lib_powerpc/multi.c: fix stack overflow error 2011-12-23 20:08:10 +01:00
rlwimi.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
rlwinm.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
rlwnm.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
srawi.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
store.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
string.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
three.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
threei.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
threex.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
two.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00
twox.c post: use ARRAY_SIZE 2011-07-26 16:48:33 +02:00