File tree Expand file tree Collapse file tree 2 files changed +0
-37
lines changed Expand file tree Collapse file tree 2 files changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,6 @@ jump_fcontext:
64
64
movq %rbx , 0x30 (%rsp ) /* save RBX */
65
65
movq %rbp , 0x38 (%rsp ) /* save RBP */
66
66
67
- #if BOOST_CONTEXT_SHADOW_STACK
68
- /* grow the stack to reserve space for shadow stack pointer(SSP) */
69
- leaq -0x8 (%rsp ), %rsp
70
- /* read the current SSP and store it */
71
- rdsspq %rcx
72
- movq %rcx , (%rsp )
73
- #endif
74
-
75
67
#if BOOST_CONTEXT_SHADOW_STACK
76
68
/* grow the stack to reserve space for shadow stack pointer(SSP) */
77
69
leaq -0x8 (%rsp ), %rsp
Original file line number Diff line number Diff line change @@ -88,35 +88,6 @@ make_fcontext:
88
88
/* will be entered after context-function returns */
89
89
movq %rcx , 0x38 (%rax )
90
90
91
- #if BOOST_CONTEXT_SHADOW_STACK
92
- /* Populate the shadow stack and normal stack */
93
- /* get original SSP */
94
- rdsspq %r8
95
- /* restore new shadow stack */
96
- rstorssp -0x8 (%r9 )
97
- /* save the restore token on the original shadow stack */
98
- saveprevssp
99
- /* push the address of "jmp trampoline" to the new shadow stack */
100
- /* as well as the stack */
101
- call 1f
102
- jmp trampoline
103
- 1:
104
- /* save address of "jmp trampoline" as return-address */
105
- /* for context-function */
106
- pop 0x38 (%rax )
107
- /* Get the new SSP. */
108
- rdsspq %r9
109
- /* restore original shadow stack */
110
- rstorssp -0x8 (%r8 )
111
- /* save the restore token on the new shadow stack. */
112
- saveprevssp
113
-
114
- /* reserve space for the new SSP */
115
- leaq -0x8 (%rax ), %rax
116
- /* save the new SSP to this fcontext */
117
- movq %r9 , (%rax )
118
- #endif
119
-
120
91
#if BOOST_CONTEXT_SHADOW_STACK
121
92
/* Populate the shadow stack */
122
93
You can’t perform that action at this time.
0 commit comments