From 83a6fc687cab3ee87c6cae1324728521f9877ad0 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 5 Jul 2024 20:14:46 +0300 Subject: formatting and documentation --- src/vmem.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/vmem.c') diff --git a/src/vmem.c b/src/vmem.c index d041c80..f1841e4 100644 --- a/src/vmem.c +++ b/src/vmem.c @@ -232,6 +232,18 @@ vm_t alloc_fixed_uvmem(struct tcb *t, vm_t start, size_t size, vmflags_t flags) return w; } +/** + * Helper for \ref map_fixed_mem(). + * Maps some contiguous bit of physical memory to an allocated virtual memory region. + * + * @param b Virtual memory to work in. + * @param v Start of virtual memory region. + * @param p Start of physical memory region. + * @param size Size of virtual memory region. + * @param flags Flags to use for mappings. + * @param status Is written to with the status of this function. + * @return The start of the virtual address mapping. + */ static vm_t map_fixed_region(struct vmem *b, vm_t v, pm_t p, size_t size, vmflags_t flags, stat_t *status) { -- cgit v1.3