diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-27 23:16:08 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-27 23:16:08 +0200 |
commit | d7c7692585afb89c8f403d764b65931c42639224 (patch) | |
tree | 13de64f1dc7f776e5e53897712c93794e7dfb85a /src/lib/sbi/debug_console.zig | |
parent | 5708b95218ed9425753599dfb1fe9abe2d946640 (diff) |
Rename instructions.zig => riscv.zig
Diffstat (limited to 'src/lib/sbi/debug_console.zig')
-rw-r--r-- | src/lib/sbi/debug_console.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/sbi/debug_console.zig b/src/lib/sbi/debug_console.zig index 7959083..6c638e7 100644 --- a/src/lib/sbi/debug_console.zig +++ b/src/lib/sbi/debug_console.zig @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0-or-later const std = @import("std"); -const instructions = @import("../instructions.zig"); +const riscv = @import("../riscv.zig"); const sbi = @import("../sbi.zig"); const ExtId: usize = 0x4442434E; @@ -17,7 +17,7 @@ const FnId = enum(usize) { pub const Writer = std.io.Writer(void, sbi.Error, write); fn write(_: void, bytes: []const u8) !usize { - const ret = instructions.ecall(ExtId, @intFromEnum(FnId.Write), bytes.len, @intFromPtr(bytes.ptr), 0); + const ret = riscv.ecall(ExtId, @intFromEnum(FnId.Write), bytes.len, @intFromPtr(bytes.ptr), 0); if (ret.err != 0) { return sbi.errorFromCode(ret.err); } |