aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Win32-MinGW')
-rw-r--r--demos/Win32-MinGW/chcore.h2
-rw-r--r--demos/Win32-MinGW/chcore2.s4
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/Win32-MinGW/chcore.h b/demos/Win32-MinGW/chcore.h
index 43265326b..6bb2664f5 100644
--- a/demos/Win32-MinGW/chcore.h
+++ b/demos/Win32-MinGW/chcore.h
@@ -76,7 +76,7 @@ typedef struct {
t_msg _IdleThread(void *p);
__attribute__((fastcall)) void chSysHalt(void);
-__attribute__((fastcall)) void chSysSwitchI(Context *oldp, Context *newp);
+__attribute__((fastcall)) void chSysSwitchI(Thread *otp, Thread *ntp);
__attribute__((fastcall)) void threadstart(void);
#endif /* _CHCORE_H_ */
diff --git a/demos/Win32-MinGW/chcore2.s b/demos/Win32-MinGW/chcore2.s
index c8260e3e6..9334fbfdc 100644
--- a/demos/Win32-MinGW/chcore2.s
+++ b/demos/Win32-MinGW/chcore2.s
@@ -27,9 +27,9 @@
push %esi
push %edi
push %ebx
- movl %esp,(%ecx)
+ movl %esp,16(%ecx)
# Switch in
- movl (%edx),%esp
+ movl 16(%edx),%esp
pop %ebx
pop %edi
pop %esi