From d55aaafa9a078ecb1d7420d3f54faf9679e865cb Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Fri, 28 May 2021 13:29:32 +0300 Subject: [PATCH] Set a default SP --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 62a6fc7..42890f6 100644 --- a/main.c +++ b/main.c @@ -339,6 +339,7 @@ int main(int argc, char **argv) { regs.lr = -1; regs.pc = PROGSTART; regs.msr = MSR_64 | MSR_FP | MSR_LE; + regs.gpr[1] = 0x8000; // Default stack pointer at 32kb, 20kb free space before vecs while (1) { const int c = getopt_long(argc, argv, opts, longopts, NULL); -- 2.30.2