Skip to content
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

wasm2c: Add Segue support for FreeBSD #2564

Merged
merged 1 commit into from
Mar 24, 2025
Merged

Conversation

shravanrn
Copy link
Collaborator

FreeBSD requires slightly different system calls than Linux to enable Segue, but otherwise the code is mostly the same. The biggest difference is that Linux provides getauxval function to check for support for the wrgsbase instruction. In FreeBSD, this is always supported if the hardware supports it, so we have to query cpuid rather than an OS functions.

@shravanrn
Copy link
Collaborator Author

@sbc100 @keithw Any chance one of you could have a look at this?

@shravanrn shravanrn enabled auto-merge (rebase) March 24, 2025 15:55
@shravanrn shravanrn merged commit 3cfccc8 into WebAssembly:main Mar 24, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants