diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-03 11:44:32 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-26 12:14:40 +0200 |
commit | 8e9201c37721048cdad01c046428f65dd5d1952d (patch) | |
tree | 2ecd851c91f2a937954f4aeb6c2bd4d2b728ff9a /linux/dev/glue | |
parent | 2047f2238c82d1c748ab94ca653b325ce05a9b3f (diff) |
linux: adapt glue
* linux/dev/glue/kmem.c (linux_kmem_init): Drop sanity check.
* linux/dev/init/main.c (alloc_contig_mem, free_contig_mem):
Use the buddy allocator.
Diffstat (limited to 'linux/dev/glue')
-rw-r--r-- | linux/dev/glue/kmem.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c index ff052ff..25f6fd5 100644 --- a/linux/dev/glue/kmem.c +++ b/linux/dev/glue/kmem.c @@ -107,16 +107,6 @@ linux_kmem_init () assert (pages_free[i].start); assert ((pages_free[i].start & 0xffff) == 0); - /* Sanity check: ensure pages are contiguous and within DMA limits. */ - for (p = pages, j = 0; j < MEM_CHUNK_SIZE - PAGE_SIZE; j += PAGE_SIZE) - { - assert (p->phys_addr < MEM_DMA_LIMIT); - assert (p->phys_addr + PAGE_SIZE - == ((vm_page_t) p->pageq.next)->phys_addr); - - p = (vm_page_t) p->pageq.next; - } - pages_free[i].end = pages_free[i].start + MEM_CHUNK_SIZE; /* Initialize free page bitmap. */ |