Put cinfo array into initdata section. Added more precision in bootmem

cinfo array is now freed along with other init memory.
bootmem allocator memory is reduced to be completely used up.
free boot memory now prints the used free memory as well.
This commit is contained in:
Bahadir Balban
2009-11-21 13:35:53 +02:00
parent 5bff5b5fbf
commit caa7ac0764
6 changed files with 20 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
#ifndef __BOOTMEM_H__
#define __BOOTMEM_H__
unsigned long bootmem_free_pages(void);
void *alloc_bootmem(int size, int alignment);
pmd_table_t *alloc_boot_pmd(void);

View File

@@ -17,6 +17,8 @@
#define INC_API(x) <l4/api/x>
#define INC_GLUE(x) <l4/glue/__ARCH__/x>
#define __initdata SECTION(".init.data")
/* use this to place code/data in a certain section */
#define SECTION(x) __attribute__((section(x)))
#define ALIGN(x) __attribute__((aligned (x)))