-
Notifications
You must be signed in to change notification settings - Fork 7.9k
riscv64 support for fibers #7879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This change has already been committed to the OpenBSD ports tree. Basic testing was done on OpenBSD/riscv64 using the php-src git repo master branch:
|
While I'm proposing a merge against the master branch, it would be nice to also have this change included on the PHP-8.1 stable branch. That would get us (OpenBSD) rid of patches, and would also let people build php-8.1 on riscv64 systems without ucontext_t support as expected by configure.ac. |
(note that openbsd does not and likely will never have ucontext) |
@trowski, have there been any particular reasons to omit these files? |
@cmb69 Only the files that could possibly be used by configure have been bundled. There's no reason to exclude any of the asm files once they've been added to configure and tested. It's nice to see these platforms being tested. If we merge #7623, then all the Boost.Context asm files would be bundled, however more changes will be necessary for configure to resolve to those bundled files. This should be merged into the PHP-8.1 branch IMO. |
Unless RMs object – @krakjoe, @ramsey, @patrickallaert. |
No objection from me. |
This looks fine to merge into 8.1. At this point we should either merge or close #7623. For me, I would rather only bundle what configure may include in a build. Someone with knowledge of and access to the remaining (exotic) platforms needs to do the same sort of legwork as was done here. Bundling a bunch of assembly we can't use is a little strange. |
I think it makes sense to merge this PR now, so it can be in PHP 8.1.2RC1 (which is supposed to be tagged today). We can still have a closer look at the other PR afterwards. |
Thank you! it works great, one more dependency could be removed (Alpinelinux used |
The current PHP codebase omits the riscv64 assembly files for make_fcontext/jump_fcontext from Boost.Context. Sync those from boostorg/context and hook them up.