aboutsummaryrefslogtreecommitdiff
path: root/common/mem_regions.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 17:33:55 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 17:33:55 +0200
commitebe6fe5d44d58fcb1b9d0ac52fa98a0a3ff309a7 (patch)
tree1273c7815d6790e746f6e7ecfcd464e5cab39f2e /common/mem_regions.c
parentbe78fcb0acc665d4db8edb9cda53f6863d27dd85 (diff)
downloadkmi-ebe6fe5d44d58fcb1b9d0ac52fa98a0a3ff309a7.tar.gz
kmi-ebe6fe5d44d58fcb1b9d0ac52fa98a0a3ff309a7.zip
Steps towards better status/debugging control
Diffstat (limited to 'common/mem_regions.c')
-rw-r--r--common/mem_regions.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/mem_regions.c b/common/mem_regions.c
index ebcff50..c7abb19 100644
--- a/common/mem_regions.c
+++ b/common/mem_regions.c
@@ -420,9 +420,8 @@ size_t uvmem_size()
* NOTE: not actually optimal, this doesn't bother to go through possible
* permutations etc. which would be slow and I don't want to implement it.
*/
-vm_t map_fill_region(struct vm_branch *b,
- stat_t (*vmem_handler)(struct vm_branch *, pm_t *, vm_t, uint8_t, enum mm_order),
- pm_t offset, vm_t start, size_t bytes, uint8_t flags)
+vm_t map_fill_region(struct vm_branch *b, mem_region_callback_t *mem_handler,
+ pm_t offset, vm_t start, size_t bytes, vmflags_t flags)
{
pm_t runner = __page(start);
size_t pages = __pages(bytes);
@@ -442,7 +441,7 @@ vm_t map_fill_region(struct vm_branch *b,
continue;
while(pages >= o_pages){
- int res = vmem_handler(b, &offset, __addr(runner), flags, top);
+ stat_t res = mem_handler(b, &offset, __addr(runner), flags, top);
if(res > 0)
break;