Changeset 21859 for branches/gcc-kmk/src/kernel32/exceptutil.asm
- Timestamp:
- Dec 7, 2011, 7:45:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/kernel32/exceptutil.asm
r21838 r21859 40 40 _RaiseException@16 proc near 41 41 42 ifdef __GNUC__43 42 ; _OS2RaiseException is _cdecl 44 43 … … 83 82 pop eax 84 83 pop ebp 85 else86 ; _OS2RaiseException _Pascal87 push dword ptr [esp+4] ;DWORD dwExceptionCode88 push dword ptr [esp+12] ;DWORD dwExceptionFlags89 push dword ptr [esp+20] ;DWORD cArguments90 push dword ptr [esp+28] ;DWORD *lpArguments91 push dword ptr [esp+16] ;return address92 push esp93 add dword ptr [esp], 2094 push ebp95 pushfd96 push eax97 push ebx98 push ecx99 push edx100 push edi101 push esi102 xor eax, eax103 mov eax, cs104 push eax105 mov eax, ds106 push eax107 mov eax, es108 push eax109 mov eax, fs110 push eax111 mov eax, gs112 push eax113 mov eax, ss114 push eax115 call _OS2RaiseException116 endif117 84 118 85 ret 16 ;__stdcall … … 126 93 _RtlUnwind@16 proc near 127 94 128 ifdef __GNUC__129 95 ; OS2RtlUnwind is _cdecl 130 96 … … 169 135 pop eax 170 136 pop ebp 171 else172 ; OS2RtlUnwind is _Pascal173 push dword ptr [esp+4] ;PWINEXCEPTION_FRAME pEndFrame174 push dword ptr [esp+12] ;LPVOID unusedEip175 push dword ptr [esp+20] ;PWINEXCEPTION_RECORD pRecord176 push dword ptr [esp+28] ;DWORD returnEax177 push dword ptr [esp+16] ;return address178 push esp179 add dword ptr [esp], 20180 push ebp181 pushfd182 push eax183 push ebx184 push ecx185 push edx186 push edi187 push esi188 xor eax, eax189 mov eax, cs190 push eax191 mov eax, ds192 push eax193 mov eax, es194 push eax195 mov eax, fs196 push eax197 mov eax, gs198 push eax199 mov eax, ss200 push eax201 call _OS2RtlUnwind202 endif203 137 204 138 ret 16 ;__stdcall
Note:
See TracChangeset
for help on using the changeset viewer.