[CRT] Use chkstk_ms.s on x64 builds

This commit is contained in:
Timo Kreuzer 2018-01-29 18:37:09 +01:00
parent 38be76187a
commit aff33c855d
4 changed files with 12 additions and 14 deletions

View file

@ -15,14 +15,17 @@
/* CODE **********************************************************************/
.code64
PUBLIC ___chkstk_ms
PUBLIC __chkstk
PUBLIC __alloca_probe
__alloca_probe:
.PROC __chkstk
//cfi_startproc()
___chkstk_ms:
push rcx /* save temps */
//cfi_push(%rcx)
.pushreg rcx
push rax
//cfi_push(%rax)
.pushreg rax
.endprolog
cmp rax, PAGE_SIZE /* > 4k ?*/
lea rcx, [rsp + 24] /* point past return addr */
@ -41,11 +44,10 @@ l_LessThanAPage:
or byte ptr [rcx], 0 /* less than 4k, just peek here */
pop rax
//cfi_pop(%rax)
pop rcx
//cfi_pop(%rcx)
ret
//cfi_endproc()
.ENDP
END
/* EOF */