aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/SIMIA32
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-26 07:40:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-03-26 07:40:25 +0000
commit908fe1986f478f0a7e1051cb238acf6fbfc0c5d5 (patch)
treecaad92fc65fc671f7fee935f7e5bc46c620e629d /os/ports/GCC/SIMIA32
parentdea859c252d1ba02aaead3022b004702679712a6 (diff)
downloadChibiOS-908fe1986f478f0a7e1051cb238acf6fbfc0c5d5.tar.gz
ChibiOS-908fe1986f478f0a7e1051cb238acf6fbfc0c5d5.tar.bz2
ChibiOS-908fe1986f478f0a7e1051cb238acf6fbfc0c5d5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1778 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/GCC/SIMIA32')
-rw-r--r--os/ports/GCC/SIMIA32/chcore.c8
-rw-r--r--os/ports/GCC/SIMIA32/chcore.h2
2 files changed, 5 insertions, 5 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" \
diff --git a/os/ports/GCC/SIMIA32/chcore.h b/os/ports/GCC/SIMIA32/chcore.h
index 2e5175c70..aa5e5a5ae 100644
--- a/os/ports/GCC/SIMIA32/chcore.h
+++ b/os/ports/GCC/SIMIA32/chcore.h
@@ -207,7 +207,7 @@ struct context {
#ifdef __cplusplus
extern "C" {
#endif
- __attribute__((fastcall)) void port_switch(Thread *otp, Thread *ntp);
+ __attribute__((fastcall)) void port_switch(Thread *ntp, Thread *otp);
__attribute__((fastcall)) void port_halt(void);
void threadexit(void);
void ChkIntSources(void);