diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-01-19 11:44:31 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-01-19 11:44:31 +0100 |
commit | 86190bc892f3421e0c7a995db5572dd7628b6c43 (patch) | |
tree | 95d750bee857c13320fba5c7c2d5ddf71eb8d409 /libddekit | |
parent | cc0a19e0aaff6154069d784be15a5dee0cbe06d9 (diff) |
hide free_pages.
Diffstat (limited to 'libddekit')
-rw-r--r-- | libddekit/kmem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libddekit/kmem.c b/libddekit/kmem.c index 7a35f3d8..668505ec 100644 --- a/libddekit/kmem.c +++ b/libddekit/kmem.c @@ -79,7 +79,7 @@ struct chunkhdr }; static unsigned long __get_free_pages (unsigned long order, int dma); -void free_pages (unsigned long addr, unsigned long order); +static void free_pages (unsigned long addr, unsigned long order); static struct mutex mem_lock = MUTEX_INITIALIZER; @@ -277,6 +277,8 @@ linux_kmalloc (unsigned int size, int priority) if (pages_free[i].end == 0) break; + // TODO use a dynamically allocated memory to + // record directly allocated large memory. assert (i < MEM_CHUNKS_TOTAL); size = ROUND_UP (size); err = vm_dma_buff_alloc (priv_host, mach_task_self (), size, |