new free_contig() and changes to make drivers use it; so now we

have malloc/free, alloc_contig/free_contig and mmap/munmap nicely
paired up.

memory uses malloc/free instead of mmap/munmap as it doesn't have
to be contiguous for the ramdisks (and it might help if it doesn't!).
This commit is contained in:
Ben Gras
2010-02-10 13:56:26 +00:00
parent 49284caf2a
commit f08f2bd88c
6 changed files with 18 additions and 31 deletions

View File

@@ -73,3 +73,8 @@ void *alloc_contig(size_t len, int flags, phys_bytes *phys)
return (void *) buf;
}
int free_contig(void *addr, size_t len)
{
return munmap(addr, len);
}