Commit 0a86f668 authored by Emilia Kasper's avatar Emilia Kasper Committed by Richard Levitte
Browse files

On Windows, page walking is known as __chkstk.

parent 1bf80d93
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@ $frame=32; # size of above frame rounded up to 16n

	&and	("esp",-64);		# align to cache line

	# An OS-agnostic version of __chkstk.
	#
	# Some OSes (Windows) insist on stack being "wired" to
	# physical memory in strictly sequential manner, i.e. if stack
	# allocation spans two pages, then reference to farmost one can
+2 −0
Original line number Diff line number Diff line
@@ -130,6 +130,8 @@ $code.=<<___;

	mov	%r11,8(%rsp,$num,8)	# tp[num+1]=%rsp
.Lmul_body:
	# An OS-agnostic version of __chkstk.
	#
	# Some OSes (Windows) insist on stack being "wired" to
	# physical memory in strictly sequential manner, i.e. if stack
	# allocation spans two pages, then reference to farmost one can
+2 −0
Original line number Diff line number Diff line
@@ -115,6 +115,8 @@ $code.=<<___;

	mov	%rax,8(%rsp,$num,8)	# tp[num+1]=%rsp
.Lmul_body:
	# An OS-agnostic version of __chkstk.
	#
	# Some OSes (Windows) insist on stack being "wired" to
	# physical memory in strictly sequential manner, i.e. if stack
	# allocation spans two pages, then reference to farmost one can