NOMMU: Return offs instead of vaddr when mapping physmem
@@ -226,7 +226,7 @@ static void *_map_map(vm_map_t *map, void *vaddr, process_t *proc, size_t size,
#ifdef NOMMU
if (o == (void *)-1)
- return vaddr;
+ return (void *)(ptr_t)offs;
#endif
if ((v = _map_find(map, vaddr, size, &prev, &next)) == NULL)
