mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 04:13:16 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user