[sgen] Add debug option for valloc limit
[mono-project.git] / mono / utils / win64.asm
blob1ac7e077af462557f02a22fb47bf04a457638998
1 ifdef RAX
2 else
4 .386
5 .model flat, c
7 endif
9 .code
11 ifdef RAX
13 PUBLIC mono_context_get_current
15 mono_context_get_current PROC
16 ;rcx has the ctx ptr
17 mov [rcx + 00h], rax
18 mov [rcx + 08h], rcx
19 mov [rcx + 10h], rdx
20 mov [rcx + 18h], rbx
21 mov [rcx + 20h], rsp
22 mov [rcx + 28h], rbp
23 mov [rcx + 30h], rsi
24 mov [rcx + 38h], rdi
25 mov [rcx + 40h], r8
26 mov [rcx + 48h], r9
27 mov [rcx + 50h], r10
28 mov [rcx + 58h], r11
29 mov [rcx + 60h], r12
30 mov [rcx + 68h], r13
31 mov [rcx + 70h], r14
32 mov [rcx + 78h], r15
34 lea rax, __mono_current_ip
35 __mono_current_ip:
36 mov [rcx + 80h], rax
37 ret
39 mono_context_get_current endP
41 endif
43 end