summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-07-06 18:48:45 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-07-06 18:48:45 +0200
commit97447914d6dcc32ada4ee028e1e2bab262501316 (patch)
tree6c6ac032d3ceced2a37b81bd64345e368acc1f22 /i386
parent02356436fc183e0b8ef357cde5196c493ab33d15 (diff)
Document that io_map_cached leaks memory
Diffstat (limited to 'i386')
-rw-r--r--i386/grub/glue.h2
-rw-r--r--i386/i386/io_map.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/i386/grub/glue.h b/i386/grub/glue.h
index e1c62eb..ae41014 100644
--- a/i386/grub/glue.h
+++ b/i386/grub/glue.h
@@ -26,6 +26,8 @@
#include <mach/mach_types.h>
#include <i386/vm_param.h>
+/* Warning: this leaks memory maps for now, do not use it yet for something
+ * else than Mach shutdown. */
vm_offset_t io_map_cached(vm_offset_t phys_addr, vm_size_t size);
#endif /* _GRUB_GLUE_H */
diff --git a/i386/i386/io_map.c b/i386/i386/io_map.c
index 03d7152..2c2aa72 100644
--- a/i386/i386/io_map.c
+++ b/i386/i386/io_map.c
@@ -66,6 +66,9 @@ io_map(
* This maps the all pages containing [PHYS_ADDR:PHYS_ADDR + SIZE].
* For contiguous requests to those pages will reuse the previously
* established mapping.
+ *
+ * Warning: this leaks memory maps for now, do not use it yet for something
+ * else than Mach shutdown.
*/
vm_offset_t
io_map_cached(