aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/mem.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-01-25 17:14:53 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2026-01-25 17:14:53 +0200
commitcd41ed1758f4842d7b78870385e16b579cc89c38 (patch)
tree271e1b437ec5a1511f4ffa400da447122576b94b /src/uapi/mem.c
parente8a7fe3bd5c40168d531a6a4f00a7417a278d58c (diff)
downloadkmi-cd41ed1758f4842d7b78870385e16b579cc89c38.tar.gz
kmi-cd41ed1758f4842d7b78870385e16b579cc89c38.zip
implement dmem semi-properlyHEADmaster
+ Add tests and fix virtual mapping, this is enough to start writing proper userspace drivers
Diffstat (limited to 'src/uapi/mem.c')
-rw-r--r--src/uapi/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uapi/mem.c b/src/uapi/mem.c
index 7a233a5..20abc96 100644
--- a/src/uapi/mem.c
+++ b/src/uapi/mem.c
@@ -82,7 +82,7 @@ SYSCALL_DEFINE1(free_mem)(struct tcb *t, sys_arg_t start)
}
/**
- * Request physical memory syscall handler.
+ * Request device memory syscall handler.
*
* @param t Current tcb.
* @param paddr Physical address to map.
@@ -91,7 +91,7 @@ SYSCALL_DEFINE1(free_mem)(struct tcb *t, sys_arg_t start)
* @return \ref OK and start of allocation when succesful,
* otherwise an error code.
*/
-SYSCALL_DEFINE3(req_pmem)(struct tcb *t, sys_arg_t paddr, sys_arg_t size,
+SYSCALL_DEFINE3(req_dmem)(struct tcb *t, sys_arg_t paddr, sys_arg_t size,
sys_arg_t flags)
{
/* this will require some pondering, but essentially this syscall should