Skip to content

spin: port to windows#963

Closed
dozreg-toplud wants to merge 8 commits into
developfrom
dozreg/spin-win
Closed

spin: port to windows#963
dozreg-toplud wants to merge 8 commits into
developfrom
dozreg/spin-win

Conversation

@dozreg-toplud

Copy link
Copy Markdown
Contributor

Ports spin stack stuff to Windows. Not tested yet.

@dozreg-toplud dozreg-toplud requested a review from pkova February 18, 2026 17:57
@dozreg-toplud dozreg-toplud requested a review from a team as a code owner February 18, 2026 17:57
@dozreg-toplud

dozreg-toplud commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

First approach was to create an anonymous mapping with CreateFileMappingA(INVALID_HANDLE_VALUE, ...), but it didn't work because the size had to be set explicitly at the time of mapping.

I tried making a sized version of shm_open but _open_osfhandle would return -1 for some reason. So I ended up making a file-backed mapping with a file in Temp directory

Cross-compiled to Windows and ran natively, spin stack output appears, so all seems to work

@dozreg-toplud

Copy link
Copy Markdown
Contributor Author

I did not realize that u3t_boot/u3t_boff are not related to spin hint, rolling these back for now

@dozreg-toplud

Copy link
Copy Markdown
Contributor Author

depends on #967, will open another

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.

1 participant