From cd41ed1758f4842d7b78870385e16b579cc89c38 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 25 Jan 2026 17:14:53 +0200 Subject: implement dmem semi-properly + Add tests and fix virtual mapping, this is enough to start writing proper userspace drivers --- tests/common/sys.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/common') diff --git a/tests/common/sys.h b/tests/common/sys.h index 0bee8bd..60de7b0 100644 --- a/tests/common/sys.h +++ b/tests/common/sys.h @@ -44,9 +44,9 @@ static inline void *sys_req_fixmem(uintptr_t fixed, size_t size, vmflags_t flags return (void *)r.a0; } -static inline void *sys_req_pmem(uintptr_t addr, size_t size, vmflags_t flags) +static inline void *sys_req_dmem(uintptr_t addr, size_t size, vmflags_t flags) { - struct sys_ret r = syscall3(SYS_REQ_PMEM, addr, size, flags); + struct sys_ret r = syscall3(SYS_REQ_DMEM, addr, size, flags); if (r.s) return NULL; -- cgit v1.3