summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-07-29 10:43:46 +0200
committerAlejandro Sior <aho@sior.be>2022-07-29 10:43:46 +0200
commit3e88a00f88e39420c44fcdcea873c8b0c3f6f105 (patch)
treebc67c5e39d3896f8bc9ae219b3ab6fdb3b8b12e9
parente1e299083d1469177f4e5787a78c136923091f3a (diff)
mem: correct return type of unmap
-rw-r--r--mem/errors.h6
-rw-r--r--mem/vmap.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/mem/errors.h b/mem/errors.h
index e926214..3bd740c 100644
--- a/mem/errors.h
+++ b/mem/errors.h
@@ -6,7 +6,11 @@ enum mem_error {
/* Returned when an implementation does not support
one of the vmap operations */
- MEM_VMAP_UNSUPPORTED
+ MEM_VMAP_UNSUPPORTED,
+
+ /* Returned when a mapping that overlaps with another
+ was requested */
+ MEM_VMAP_OVERLAPPING
};
#endif \ No newline at end of file
diff --git a/mem/vmap.h b/mem/vmap.h
index 4e1816c..7f8b8bb 100644
--- a/mem/vmap.h
+++ b/mem/vmap.h
@@ -7,7 +7,7 @@ typedef struct mem_vmap MemVmap;
typedef usize (*MemVmapTranslate)(MemVmap *, usize);
typedef int (*MemVmapMap)(MemVmap *, usize, usize, usize, int);
-typedef int (*MemVmapUnmap)(MemVmap *, usize, usize);
+typedef void (*MemVmapUnmap)(MemVmap *, usize, usize);
typedef void (*MemVmapSwitchTo)(MemVmap *);
/* Structure abstracting the memory mapping facilities of