diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-27 19:57:58 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-27 19:57:58 +0200 |
commit | d45ae65a2af2e36f73252763d2b4349d6e7530f5 (patch) | |
tree | 13c86c5a58ca808f233d318209e118fce60029a8 | |
parent | 241ff1cf3db5d9607bbc0ccd1c6ef57dc56697f9 (diff) |
syscall: Rename uprint => consoleWrite
-rw-r--r-- | src/lib/syscall.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/syscall.zig b/src/lib/syscall.zig index f762f39..0eb4ab2 100644 --- a/src/lib/syscall.zig +++ b/src/lib/syscall.zig @@ -23,7 +23,7 @@ pub const HandleError = error{ pub fn handler(proc: *process.Info, trap_frame: *trap.Frame) !void { switch (trap_frame.general_purpose_registers[17]) { 100000 => trap_frame.setReturnValue(errorName(trap_frame)), - 100001 => trap_frame.setReturnValue(uprint(trap_frame)), + 100001 => trap_frame.setReturnValue(consoleWrite(trap_frame)), 100002 => trap_frame.setReturnValue(launch(trap_frame)), 100003 => trap_frame.setReturnValue(end(proc)), 100004 => trap_frame.setReturnValue(terminate(proc, trap_frame)), @@ -60,8 +60,8 @@ fn errorName(trap_frame: *const trap.Frame) !usize { return n; } -// uprint(bytes_addr: usize, len: usize) !usize -fn uprint(trap_frame: *const trap.Frame) !usize { +// consoleWrite(bytes_addr: usize, len: usize) !usize +fn consoleWrite(trap_frame: *const trap.Frame) !usize { const vaddr = trap_frame.general_purpose_registers[10]; const len = trap_frame.general_purpose_registers[11]; |