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

aarch64 loader passes os #1042

Merged
merged 7 commits into from
Dec 31, 2023
Merged

aarch64 loader passes os #1042

merged 7 commits into from
Dec 31, 2023

Conversation

mrdomino
Copy link
Collaborator

@mrdomino mrdomino commented Dec 25, 2023

Both aarch64 loaders (loader.c and ape-m1.c) now pass the detected OS to cosmopolitan, using the same calling convention as x86_64 for exename and os.

Third and fourth arguments are now identical between cosmo and Launch.
By passing sp as argument 4, we save a bit of register juggling.

Fourth argument (os) is now always passed by the loader on aarch64. It
is not yet processed by cosmo. Pushing this change separately, as the
cosmo side turns out to be somewhat more involved.
FreeBSD aarch64 now traps early rather than pretending to be Linux.
o/aarch64/examples/env.com still works on Linux and Xnu.
@mrdomino

This comment was marked as outdated.

@mrdomino mrdomino marked this pull request as ready for review December 31, 2023 03:56
@jart jart self-requested a review December 31, 2023 06:01
Copy link
Owner

@jart jart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Cloned locally and confirmed it passes fleet. Thank you!

@jart jart merged commit 14fe83f into jart:master Dec 31, 2023
5 checks passed
@mrdomino mrdomino deleted the aarch64-os branch December 31, 2023 15:17
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