projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Remove ia64 backend, the Itanium architecture is dead. (#4859)
[mono.git]
/
mono
/
utils
/
win64.asm
1
ifdef RAX
2
else
3
4
.386
5
.model flat, c
6
7
endif
8
9
.code
10
11
ifdef RAX
12
13
PUBLIC mono_context_get_current
14
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
33
34
lea rax, __mono_current_ip
35
__mono_current_ip:
36
mov [rcx + 80h], rax
37
ret
38
39
mono_context_get_current endP
40
41
endif
42
43
end