aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/SIMIA32/chcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/GCC/SIMIA32/chcore.c')
-rw-r--r--os/ports/GCC/SIMIA32/chcore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/ports/GCC/SIMIA32/chcore.c b/os/ports/GCC/SIMIA32/chcore.c
index 56073bb50..e2531cd4e 100644
--- a/os/ports/GCC/SIMIA32/chcore.c
+++ b/os/ports/GCC/SIMIA32/chcore.c
@@ -33,8 +33,8 @@
* @param ntp the thread to be switched in
*/
__attribute__((used))
-static void __dummy(Thread *otp, Thread *ntp) {
- (void)otp; (void)ntp;
+static void __dummy(Thread *ntp, Thread *otp) {
+ (void)ntp; (void)otp;
#if defined(WIN32)
asm volatile (".globl @port_switch@8 \n\t" \
"@port_switch@8:");
@@ -49,8 +49,8 @@ static void __dummy(Thread *otp, Thread *ntp) {
"push %esi \n\t" \
"push %edi \n\t" \
"push %ebx \n\t" \
- "movl %esp, 12(%ecx) \n\t" \
- "movl 12(%edx), %esp \n\t" \
+ "movl %esp, 12(%edx) \n\t" \
+ "movl 12(%ecx), %esp \n\t" \
"pop %ebx \n\t" \
"pop %edi \n\t" \
"pop %esi \n\t" \