-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix asm and global_asm macros #10
Conversation
Hi. Thanks for your contribution! |
cbdc280
to
615df66
Compare
Thanks for your answer! I replaced it with the asm macro, but I'm not sure whether the implementation is correct. |
asm!( | ||
"mtc0 {trap_entry}, $15, 1", | ||
trap_entry = in(reg) trap_entry, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems right to me, but I'm not 100% sure. The MIPS target is least used, so maybe we can revisit it in the future.
The macros are now namespaced: rust-lang/rust#84019 In addition, llvm_asm was removed.
615df66
to
98e384b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks again!
The macros are now namespaced:
rust-lang/rust#84019