We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aba9ea commit c0e0b93Copy full SHA for c0e0b93
1 file changed
arch/msp430/src/lib.rs
@@ -30,14 +30,14 @@ pub extern "C" fn CorePluginInit() -> bool {
30
// standardized one that is compatible with TI's compiler
31
let default = calling_convention::ConventionBuilder::new(arch)
32
.is_eligible_for_heuristics(true)
33
- .int_arg_registers(&["r15", "r14", "r13", "r12"])
34
- .return_int_reg("r15")
35
- .return_hi_int_reg("r14")
+ .int_arg_registers(&["r12", "r13", "r14", "r15"])
+ .return_int_reg("r12")
+ .return_hi_int_reg("r13")
36
.register("default");
37
calling_convention::ConventionBuilder::new(arch)
38
39
40
41
.register("stack");
42
43
arch.set_default_calling_convention(&default);
0 commit comments