From ed57b62f79466ae519001f3599dea215bcf7ac44 Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Fri, 12 Dec 2025 14:25:01 +0000 Subject: [PATCH] Add render and getkey syscalls, for host-sdl use. --- common/uvm32_common_custom.h | 2 ++ common/uvm32_target.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/uvm32_common_custom.h b/common/uvm32_common_custom.h index 69760cc..82bb6f4 100644 --- a/common/uvm32_common_custom.h +++ b/common/uvm32_common_custom.h @@ -9,4 +9,6 @@ #define UVM32_SYSCALL_PRINTHEX 0x00000005 #define UVM32_SYSCALL_MILLIS 0x00000006 #define UVM32_SYSCALL_PRINTBUF 0x00000007 +#define UVM32_SYSCALL_RENDER 0x00000008 +#define UVM32_SYSCALL_GETKEY 0x00000009 diff --git a/common/uvm32_target.h b/common/uvm32_target.h index a5393df..90504b0 100644 --- a/common/uvm32_target.h +++ b/common/uvm32_target.h @@ -48,6 +48,8 @@ static uint32_t syscall(uint32_t id, uint32_t param1, uint32_t param2) { #define getc() syscall_cast(UVM32_SYSCALL_GETC, 0, 0) #define yield(x) syscall_cast(UVM32_SYSCALL_YIELD, x, 0) #define printbuf(x, y) syscall_cast(UVM32_SYSCALL_PRINTBUF, x, y) +#define render(x, y) syscall_cast(UVM32_SYSCALL_RENDER, x, y) +#define getkey() syscall_cast(UVM32_SYSCALL_GETKEY, 0, 0) extern char _estack;