diff options
-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]; |