Fix Sparc64 stack offset

git-svn-id: svn://coreboot.org/openbios/openbios-devel@121 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2007-04-14 19:48:59 +00:00
parent d06b24d10f
commit 20b56f4784

View File

@@ -21,7 +21,7 @@ void __exit_context(void); /* assembly routine */
* 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,