Added freeing of pager init memory, but this memory is currently not utilized.

This commit is contained in:
Bahadir Balban
2009-08-19 16:26:44 +03:00
parent 9c03d57d63
commit dabc448c4e
7 changed files with 74 additions and 12 deletions

View File

@@ -37,5 +37,6 @@ extern struct cap_list capability_list;
struct initdata;
int read_kernel_capabilities(struct initdata *);
void copy_boot_capabilities(struct initdata *initdata);
#endif /* __MM0_CAPABILITY_H__ */

View File

@@ -36,16 +36,20 @@ SECTIONS
.bss : AT (ADDR(.bss) - pager_offset) { *(.bss) }
. = ALIGN(4K);
. += 0x2000; /* BSS doesnt increment link counter??? */
.stack : AT (ADDR(.stack) - pager_offset)
{
*(.stack)
}
. = ALIGN(4K);
__stack = .; /* This is the preallocated boot stack */
/* Below part is to be discarded after boot */
_start_init = .;
.init : AT (ADDR(.init) - pager_offset)
{
*(.init.data)
*(.init.bootmem)
*(.init.stack)
}
_end_init = .;
__stack = .; /* This is the preallocated boot stack */
_end_init = .;
_end = .;
}