diff options
Diffstat (limited to 'src/sbi/sys_reset.zig')
-rw-r--r-- | src/sbi/sys_reset.zig | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/sbi/sys_reset.zig b/src/sbi/sys_reset.zig index aa410e5..5651fba 100644 --- a/src/sbi/sys_reset.zig +++ b/src/sbi/sys_reset.zig @@ -2,11 +2,8 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -const base = @import("base.zig"); const instructions = @import("../instructions.zig"); -const sbierr = @import("error.zig"); - -const SBIError = sbierr.SBIError; +const sbi = @import("../sbi.zig"); const ExtId: usize = 0x53525354; @@ -26,8 +23,8 @@ pub const Reason = enum(u32) { }; pub fn reset(@"type": Type, reset_reason: Reason) !void { - if (!try base.probeExt(ExtId)) { - return SbiError.NotSupported; + if (!try sbi.probeExt(ExtId)) { + return sbi.Error.NotSupported; } const typeId = @intFromEnum(reset_type); |