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

chore: specify sysv64 for the calling convention of the external assembly functions #267

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

toku-sa-n
Copy link
Member

@toku-sa-n toku-sa-n commented Jun 12, 2021

This ensures that the arguments to the external assembly functions are passed by RDI, RSI, RDX, RCX, etc.

This ensures that the arguments are passed by RDI, RSI, RDX, RCX, etc.
@toku-sa-n toku-sa-n marked this pull request as draft June 12, 2021 01:41
@toku-sa-n toku-sa-n marked this pull request as ready for review June 12, 2021 01:45
@toku-sa-n toku-sa-n changed the title chore: specify sysv64 for the calling convention chore: specify sysv64 for the calling convention of the external assembly functions Jun 12, 2021
Copy link
Contributor

@josephlr josephlr left a comment

Choose a reason for hiding this comment

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

Good catch here, this would definitely cause miscompilations on a Windows-like target.

@josephlr josephlr merged commit e5c202c into rust-osdev:master Jun 14, 2021
@toku-sa-n toku-sa-n deleted the specify_sysv64 branch June 16, 2021 01:33
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