Rename getbuf to getslice

This commit is contained in:
Toby Jaffey 2025-12-13 23:15:06 +00:00
parent b083008d7b
commit 2039de73f2
7 changed files with 16 additions and 16 deletions

View file

@ -225,7 +225,7 @@ int main(int argc, char *argv[]) {
case UVM32_EVT_SYSCALL:
switch(evt.data.syscall.code) {
case UVM32_SYSCALL_PRINTBUF: {
uvm32_slice_t buf = uvm32_arg_getbuf(vmst, &evt, ARG0, ARG1);
uvm32_slice_t buf = uvm32_arg_getslice(vmst, &evt, ARG0, ARG1);
while(buf.len--) {
printf("%02x", *buf.ptr++);
}
@ -259,7 +259,7 @@ int main(int argc, char *argv[]) {
uvm32_arg_setval(vmst, &evt, RET, 0xFFFFFFFF);
} break;
case UVM32_SYSCALL_RENDER: {
uvm32_slice_t buf = uvm32_arg_getbuf(vmst, &evt, ARG0, ARG1);
uvm32_slice_t buf = uvm32_arg_getslice(vmst, &evt, ARG0, ARG1);
// copy into texture
void* dst;