Skip to content

wasm2c: Add Segue support for FreeBSD - #2564

Merged
shravanrn merged 1 commit into
WebAssembly:mainfrom
PLSysSec:segue-bsd
Mar 24, 2025
Merged

shravanrn merged 1 commit into
WebAssembly:mainfrom
PLSysSec:segue-bsd

Conversation

@shravanrn

Copy link
Copy Markdown
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
Copy Markdown
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
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.

2 participants