summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
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(