ALT Linux Bugzilla
– Attachment 10117 Details for
Bug 41705
[PATCH] собираемость на e2k
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
php-8.1.1 e2k support
php-8.1.1-e2k.patch (text/plain), 1.20 KB, created by
Michael Shigorin
on 2022-01-13 10:21:56 MSK
(
hide
)
Description:
php-8.1.1 e2k support
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2022-01-13 10:21:56 MSK
Size:
1.20 KB
patch
obsolete
>>From 2a449db12010e23faa6cdcdc36c2a8434e980e1e Mon Sep 17 00:00:00 2001 >From: Ilya Kurdyukov <jpegqs@gmail.com> >Date: Wed, 12 Jan 2022 21:42:09 +0700 >Subject: [PATCH] php-8.1.1 e2k support > >Elbrus has three separate stacks so makecontext() >was replaced with makecontext_e2k() which needs >explicit freecontext_e2k() where appropriate. > >--- > Zend/zend_fibers.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/Zend/zend_fibers.c b/Zend/zend_fibers.c >index 92ae9b88..a947768c 100644 >--- a/Zend/zend_fibers.c >+++ b/Zend/zend_fibers.c >@@ -328,7 +328,13 @@ ZEND_API bool zend_fiber_init_context(zend_fiber_context *context, void *kind, z > handle->uc_stack.ss_flags = 0; > handle->uc_link = NULL; > >+#ifdef __e2k__ >+ if (UNEXPECTED(makecontext_e2k(handle, (void (*)(void)) zend_fiber_trampoline, 0) < 0)) { >+ return false; >+ } >+#else > makecontext(handle, (void (*)(void)) zend_fiber_trampoline, 0); >+#endif > > context->handle = handle; > #else >@@ -354,6 +360,10 @@ ZEND_API void zend_fiber_destroy_context(zend_fiber_context *context) > { > zend_observer_fiber_destroy_notify(context); > >+#ifdef __e2k__ >+ freecontext_e2k(&context->stack->ucontext); >+#endif >+ > zend_fiber_stack_free(context->stack); > } > >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41705
: 10117 |
10119