1/*
2 * PROJECT:     ReactOS API tests
3 * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE:     Helper functions for NtContinue test
5 * COPYRIGHT:   Copyright 2022 Timo Kreuzer (timo.kreuzer@reactos.org)
6 */
7
8#include <asm.inc>
9#include <ksamd64.inc>
10
11.code64
12
13EXTERN RtlCaptureContext:PROC
14EXTERN check:PROC
15
16PUBLIC continuePoint
17.PROC continuePoint
18
19    // Allocate space for a CONTEXT structure
20    .ALLOCSTACK CONTEXT_FRAME_LENGTH + 8
21    .ENDPROLOG
22
23    // Capture the current CONTEXT
24    mov rcx, rsp
25    call RtlCaptureContext
26
27    // Call the function that will compare the current context with the expected one
28    cld
29    mov rcx, rsp
30    call check
31
32    // check() must not return
33    int 3
34
35.ENDP
36
37// EOF
38END
39