diff options
Diffstat (limited to 'demos/Win32-MSVS')
-rw-r--r-- | demos/Win32-MSVS/chcore.c | 6 | ||||
-rw-r--r-- | demos/Win32-MSVS/chcore.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/demos/Win32-MSVS/chcore.c b/demos/Win32-MSVS/chcore.c index 99876b8d6..facdea31c 100644 --- a/demos/Win32-MSVS/chcore.c +++ b/demos/Win32-MSVS/chcore.c @@ -84,7 +84,7 @@ __declspec(naked) void __fastcall chSysHalt(void) { exit(2);
}
-__declspec(naked) void __fastcall chSysSwitchI(Context *oldp, Context *newp) {
+__declspec(naked) void __fastcall chSysSwitchI(Thread *otp, Thread *ntp) {
__asm {
// Switch out code
@@ -92,9 +92,9 @@ __declspec(naked) void __fastcall chSysSwitchI(Context *oldp, Context *newp) { push esi
push edi
push ebx
- mov dword ptr [ecx],esp
+ mov dword ptr 16[ecx],esp
// Switch in code
- mov esp,[edx]
+ mov esp,16[edx]
pop ebx
pop edi
pop esi
diff --git a/demos/Win32-MSVS/chcore.h b/demos/Win32-MSVS/chcore.h index b9fbb0147..18e96dc13 100644 --- a/demos/Win32-MSVS/chcore.h +++ b/demos/Win32-MSVS/chcore.h @@ -76,7 +76,7 @@ typedef struct { t_msg _IdleThread(void *p);
void __fastcall chSysHalt(void);
-void __fastcall chSysSwitchI(Context *oldp, Context *newp);
+void __fastcall chSysSwitchI(Thread *otp, Thread *ntp);
void __fastcall threadexit(void);
#endif /* _CHCORE_H_ */
|