diff options
| -rw-r--r-- | mem/errors.h | 6 | ||||
| -rw-r--r-- | mem/vmap.h | 2 |
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 @@ -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 |
