From 3b9e182f11d0110765b11e4d53afe899aa795c5f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 17 Jul 2014 12:24:19 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7041 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/nil/ports/e200/nilcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/nil') diff --git a/os/nil/ports/e200/nilcore.c b/os/nil/ports/e200/nilcore.c index 5ca3e40c0..1f6e62fe1 100644 --- a/os/nil/ports/e200/nilcore.c +++ b/os/nil/ports/e200/nilcore.c @@ -73,8 +73,8 @@ void port_dummy1(void) { asm ("stw %r0, 0(%sp)"); /* CR. */ asm ("stmw %r14, 4(%sp)"); /* GPR14...GPR31. */ - asm ("stw %sp, 12(%r4)"); /* Store swapped-out stack. */ - asm ("lwz %sp, 12(%r3)"); /* Load swapped-in stack. */ + asm ("stw %sp, 0(%r4)"); /* Store swapped-out stack. */ + asm ("lwz %sp, 0(%r3)"); /* Load swapped-in stack. */ asm ("lmw %r14, 4(%sp)"); /* GPR14...GPR31. */ asm ("lwz %r0, 0(%sp)"); /* CR. */ -- cgit v1.2.3