From 31289f3544397b67bae6cfb192970b443f0d2208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 16 Oct 2010 17:36:18 +0000 Subject: [PATCH] ppc: Fix client stack setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The client stack was set up 96 * 64 KiB below the hash table. Should be 96 KiB instead. v2: * Initial. Cc: Alexander Graf Signed-off-by: Andreas Färber Signed-off-by: Blue Swirl git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@908 f158a5a8-5612-0410-a976-696ce0be7e32 --- arch/ppc/qemu/start.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/ppc/qemu/start.S b/arch/ppc/qemu/start.S index 0775536..c995581 100644 --- a/arch/ppc/qemu/start.S +++ b/arch/ppc/qemu/start.S @@ -379,7 +379,8 @@ GLOBL(call_elf): addi r8,r8,LO(saved_stack) // save our stack pointer stw r1,0(r8) mfsdr1 r1 - addis r1, r1, -96 + addi r1, r1, -32768 /* - 32 KiB exception stack */ + addis r1, r1, -1 /* - 64 KiB stack */ lis r5,HA(of_client_callback) addi r5,r5,LO(of_client_callback) // r5 = callback li r6,0 // r6 = address of client program arguments (unused)