mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
[KMTESTS:EX]
- Make hard-coded calling convention exceptions in ExInterlocked compatible with GCC 4.7, and add the corresponding TODO about how ugly this is svn path=/trunk/; revision=57166
This commit is contained in:
parent
38ce718bde
commit
8003401991
1 changed files with 19 additions and 16 deletions
|
@ -50,6 +50,8 @@ typedef struct
|
|||
typedef int PROCESSOR_STATE;
|
||||
#endif
|
||||
|
||||
/* TODO: these need to be rewritten in proper assembly to account for registers
|
||||
* saved by the caller */
|
||||
#if defined(_MSC_VER) && defined(_M_IX86)
|
||||
#define SaveState(State) do \
|
||||
{ \
|
||||
|
@ -84,9 +86,10 @@ typedef int PROCESSOR_STATE;
|
|||
|
||||
#define CheckState(OldState, NewState) do \
|
||||
{ \
|
||||
ok_eq_hex((OldState)->esi, (NewState)->esi); \
|
||||
/* TODO: GCC 4.7 uses esi and saves it before, so this is okay */ \
|
||||
/*ok_eq_hex((OldState)->esi, (NewState)->esi);*/ \
|
||||
ok_eq_hex((OldState)->edi, (NewState)->edi); \
|
||||
/* TODO: GCC uses ebx and saves it before, so this is okay */ \
|
||||
/* TODO: GCC 4.4 uses ebx and saves it before, so this is okay */ \
|
||||
/*ok_eq_hex((OldState)->ebx, (NewState)->ebx);*/ \
|
||||
ok_eq_hex((OldState)->ebp, (NewState)->ebp); \
|
||||
ok_eq_hex((OldState)->esp, (NewState)->esp); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue