Skip to content

Commit 04bdc4a

Browse files
mvorisekndossche
authored andcommitted
Sync all boost.context files with release 1.86.0
1 parent b828cc5 commit 04bdc4a

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

Zend/asm/jump_sparc64_sysv_elf_gas.S

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
*/
77

88
/*
9-
* typedef struct {
10-
* void *handle;
11-
* zend_fiber_transfer *transfer;
12-
* } boost_context_data;
9+
* typedef void* fcontext_t;
1310
*
14-
* boost_context_data jump_fcontext(void *to, zend_fiber_transfer *transfer);
11+
* struct transfer_t {
12+
* fcontext_t fctx;
13+
* void * data;
14+
* };
15+
*
16+
* transfer_t jump_fcontext(fcontext_t const to, void *vp);
1517
*/
1618
#define CC64FSZ 176
1719
#define BIAS 2047

Zend/asm/jump_x86_64_ms_pe_gas.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
.file "jump_x86_64_ms_pe_gas.asm"
9090
.text
9191
.p2align 4,,15
92+
.globl jump_fcontext
9293
.def jump_fcontext; .scl 2; .type 32; .endef
9394
.seh_proc jump_fcontext
9495
jump_fcontext:
@@ -203,3 +204,6 @@ jump_fcontext:
203204
/* indirect jump to context */
204205
jmp *%r10
205206
.seh_endproc
207+
208+
.section .drectve
209+
.ascii " -export:\"jump_fcontext\""

Zend/asm/make_sparc64_sysv_elf_gas.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
/*
9-
* void *make_fcontext(void *sp, size_t size, void (*fn)(boost_context_data));
9+
* fcontext_t *make_fcontext(void *sp, size_t size, void (*fn)(transfer_t));
1010
*/
1111
#define CC64FSZ 176
1212
#define BIAS 2047
@@ -56,7 +56,7 @@ make_fcontext:
5656
trampoline:
5757
ldx [%sp + BIAS + I7], %l0
5858

59-
# no need to setup boost_context_data, already in %o0 and %o1
59+
# no need to setup transfer_t, already in %o0 and %o1
6060
jmpl %l0, %o7
6161
nop
6262

Zend/asm/make_x86_64_ms_pe_gas.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
.file "make_x86_64_ms_pe_gas.asm"
9090
.text
9191
.p2align 4,,15
92+
.globl make_fcontext
9293
.def make_fcontext; .scl 2; .type 32; .endef
9394
.seh_proc make_fcontext
9495
make_fcontext:
@@ -168,3 +169,6 @@ finish:
168169
.seh_endproc
169170

170171
.def _exit; .scl 2; .type 32; .endef /* standard C library function */
172+
173+
.section .drectve
174+
.ascii " -export:\"make_fcontext\""

0 commit comments

Comments
 (0)