git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@179 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
3e62617990
commit
8fb01ac783
|
@ -84,7 +84,7 @@ __declspec(naked) void __fastcall chSysHalt(void) {
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
__declspec(naked) void __fastcall chSysSwitchI(Context *oldp, Context *newp) {
|
__declspec(naked) void __fastcall chSysSwitchI(Thread *otp, Thread *ntp) {
|
||||||
|
|
||||||
__asm {
|
__asm {
|
||||||
// Switch out code
|
// Switch out code
|
||||||
|
@ -92,9 +92,9 @@ __declspec(naked) void __fastcall chSysSwitchI(Context *oldp, Context *newp) {
|
||||||
push esi
|
push esi
|
||||||
push edi
|
push edi
|
||||||
push ebx
|
push ebx
|
||||||
mov dword ptr [ecx],esp
|
mov dword ptr 16[ecx],esp
|
||||||
// Switch in code
|
// Switch in code
|
||||||
mov esp,[edx]
|
mov esp,16[edx]
|
||||||
pop ebx
|
pop ebx
|
||||||
pop edi
|
pop edi
|
||||||
pop esi
|
pop esi
|
||||||
|
|
|
@ -76,7 +76,7 @@ typedef struct {
|
||||||
t_msg _IdleThread(void *p);
|
t_msg _IdleThread(void *p);
|
||||||
|
|
||||||
void __fastcall chSysHalt(void);
|
void __fastcall chSysHalt(void);
|
||||||
void __fastcall chSysSwitchI(Context *oldp, Context *newp);
|
void __fastcall chSysSwitchI(Thread *otp, Thread *ntp);
|
||||||
void __fastcall threadexit(void);
|
void __fastcall threadexit(void);
|
||||||
|
|
||||||
#endif /* _CHCORE_H_ */
|
#endif /* _CHCORE_H_ */
|
||||||
|
|
|
@ -76,7 +76,7 @@ typedef struct {
|
||||||
t_msg _IdleThread(void *p);
|
t_msg _IdleThread(void *p);
|
||||||
|
|
||||||
__attribute__((fastcall)) void chSysHalt(void);
|
__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);
|
__attribute__((fastcall)) void threadstart(void);
|
||||||
|
|
||||||
#endif /* _CHCORE_H_ */
|
#endif /* _CHCORE_H_ */
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
push %esi
|
push %esi
|
||||||
push %edi
|
push %edi
|
||||||
push %ebx
|
push %ebx
|
||||||
movl %esp,(%ecx)
|
movl %esp,16(%ecx)
|
||||||
# Switch in
|
# Switch in
|
||||||
movl (%edx),%esp
|
movl 16(%edx),%esp
|
||||||
pop %ebx
|
pop %ebx
|
||||||
pop %edi
|
pop %edi
|
||||||
pop %esi
|
pop %esi
|
||||||
|
|
Loading…
Reference in New Issue