From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 23 Dec 2011 20:08:14 +0100 Subject: [U-Boot] [PATCH 3/3] post/lib_powerpc/multi.c: fix stack overflow error In-Reply-To: <1324639752-26856-3-git-send-email-wd@denx.de> References: <20111223002150.7e9d387d@wker> <1324639752-26856-1-git-send-email-wd@denx.de> <1324639752-26856-3-git-send-email-wd@denx.de> Message-ID: <20111223190814.B078E166C892@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang Denk, In message <1324639752-26856-3-git-send-email-wd@denx.de> you wrote: > 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 > Cc: Anatolij Gustschin > Cc: Stefan Roese > Cc: Kumar Gala > Cc: Kim Phillips > Cc: Andy Fleming > --- > post/lib_powerpc/multi.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Love is an ideal thing, marriage a real thing; a confusion of the real with the ideal never goes unpunished." - Goethe