aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sbi/sys_reset.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sbi/sys_reset.zig')
-rw-r--r--src/lib/sbi/sys_reset.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/sbi/sys_reset.zig b/src/lib/sbi/sys_reset.zig
index 653e1e6..9a3d62b 100644
--- a/src/lib/sbi/sys_reset.zig
+++ b/src/lib/sbi/sys_reset.zig
@@ -22,15 +22,15 @@ pub const Reason = enum(u32) {
SysErr,
};
-pub fn reset(@"type": Type, reset_reason: Reason) !void {
+pub fn reset(@"type": Type, reason: Reason) !void {
if (!try sbi.probeExt(ExtId)) {
return sbi.Error.NotSupported;
}
- const typeId = @intFromEnum(reset_type);
- const reasonId = @intFromEnum(reset_reason);
+ const type_id = @intFromEnum(@"type");
+ const reason_id = @intFromEnum(reason);
- const ret = instructions.ecall(ExtId, @intFromEnum(FnId.Reset), ty, reason, 0);
+ const ret = riscv.ecall(ExtId, @intFromEnum(FnId.Reset), type_id, reason_id, 0);
if (ret.err != 0) {
return sbierr.errorFromCode(ret.err);
}