authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-03-17 02:24:21+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2022-03-17 02:24:21+07:00
log7579f14e0fff29e6486aef1f5c34d2fcd61cc108
treeec4f8b3835f162175d70cb506a2d3057a8783a63
parentac50ac699f675b581dc374762310ea2dfb3f7427

stage2 sparcv9: Add param/return regs list


1 files changed, 5 insertions(+), 2 deletions(-)

src/arch/sparcv9/abi.zig+5-2
......@@ -5,5 +5,8 @@ const Register = bits.Register;
55// so no need to do it manually
66pub const callee_preserved_regs = [_]Register{};
77
8// pub const c_abi_int_param_regs = [_]Register{};
9// pub const c_abi_int_return_regs = [_]Register{};
8pub const c_abi_int_param_regs_caller_view = [_]Register{.o0, .o1, .o2, .o3, .o4, .o5};
9pub const c_abi_int_param_regs_callee_view = [_]Register{.@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5"};
10
11pub const c_abi_int_return_regs_caller_view = [_]Register{.o0, .o1, .o2, .o3, .o4, .o5};
12pub const c_abi_int_return_regs_callee_view = [_]Register{.@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5"};