summaryrefslogtreecommitdiff
path: root/lib_ppc/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r--lib_ppc/board.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 2541a54e3a..0b4147f42b 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -161,6 +161,11 @@ static void syscalls_init (void)
*addr++ |= NR_SYSCALLS & 0xFFFF;
flush_cache (0x0C00, 0x10);
+
+ /* Initialize syscalls stack pointer */
+ addr = (ulong *) 0xCFC;
+ *addr = (ulong)addr;
+ flush_cache ((ulong)addr, 0x10);
}
/*