mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:52:11 +00:00
[CRT] Use chkstk_ms.s on x64 builds
This commit is contained in:
parent
38be76187a
commit
aff33c855d
4 changed files with 12 additions and 14 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue