2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: Stack checker
5 * PROGRAMERS: KJK::Hyperion <noog@libero.it>
6 * Richard Henderson <rth@redhat.com>
7 * Kai Tietz <kai.tietz@onevision.com>
8 * Timo Kreuzer <timo.kreuzer@reactos.org>
14 #define PAGE_SIZE 4096
19 /* Special version, that does only probe and not allocate */
22 /* EAX = size to be allocated */
23 /* save the ECX and EAX register */
27 /* ECX = top of the previous stack frame */
30 /* probe the desired memory, page by page */
36 /* raise the top of the stack by a page and probe */
40 /* loop if still more than a page must be probed */
47 /* raise the top of the stack by EAX bytes (size % 4096) and probe */
51 /* restore ECX and EAX */