Author: blueswirl Date: 2007-04-14 21:48:59 +0200 (Sat, 14 Apr 2007) New Revision: 121
Modified: openbios-devel/arch/sparc64/context.c Log: Fix Sparc64 stack offset
Modified: openbios-devel/arch/sparc64/context.c =================================================================== --- openbios-devel/arch/sparc64/context.c 2007-04-09 12:35:41 UTC (rev 120) +++ openbios-devel/arch/sparc64/context.c 2007-04-14 19:48:59 UTC (rev 121) @@ -21,7 +21,7 @@ * to start us up. */ const struct context main_ctx = { - .regs[REG_SP] = (uint64_t) &_estack - 96, + .regs[REG_SP] = (uint64_t) &_estack - 2047 - 96, .pc = (uint64_t) start_main, .npc = (uint64_t) start_main + 4, .return_addr = (uint64_t) __exit_context,