File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5118ef6ff02c650e54fc89318e7183e4e1cd3fa3
2
+ refs/heads/master: a35bfa2e9bc73cbdd420588dd098f91cd7afa172
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
5
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ extern "C" CDECL ALWAYS_INLINE uintptr_t get_sp_limit() {
43
43
asm volatile (
44
44
"movq %%fs:24, %0"
45
45
: "=r" (limit ));
46
+ #elif defined(_WIN64 )
47
+ asm volatile (
48
+ "movq %%gs:0x28, %0"
49
+ : "=r" (limit ));
46
50
#endif
47
51
48
52
return limit ;
@@ -65,6 +69,10 @@ extern "C" CDECL ALWAYS_INLINE void record_sp_limit(void *limit) {
65
69
asm volatile (
66
70
"movq %0, %%fs:24"
67
71
:: "r" (limit ));
72
+ #elif defined(_WIN64 )
73
+ asm volatile (
74
+ "movq %0, %%gs:0x28"
75
+ :: "r" (limit ));
68
76
#endif
69
77
}
70
78
You can’t perform that action at this time.
0 commit comments