Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.

This commit is contained in:
Colin Finck 2017-10-03 07:45:34 +00:00
parent b94e2d8ca0
commit c2c66aff7d
24198 changed files with 0 additions and 37285 deletions

View file

@ -0,0 +1,49 @@
/*
* PROJECT: MSVC runtime check support library
* LICENSE: BSD - See COPYING.ARM in the top level directory
* PURPOSE: Provides support functions for MSVC runtime checks
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
*/
#include <asm.inc>
.code
EXTERN __RTC_Failure:PROC
/*
This function is invoked like this:
mov esi, esp
// Do the actual function call
cmp esp, esi
call __RTC_CheckEsp
http://stackoverflow.com/questions/3914750/hows-rtc-checkesp-implemented
*/
PUBLIC __RTC_CheckEsp
__RTC_CheckEsp:
/* We check if the zero flag is set, and if it is, everything is fine
and we return to the caller */
je __RTC_CheckEsp_return
push ebp
mov ebp, esp
pusha
// void _RTC_Failure(void* retaddr, int errnum);
push 0 // errnum
push dword ptr [esp + 4] // retaddr
call __RTC_Failure
add esp, 8
popa
pop ebp
__RTC_CheckEsp_return:
ret
END