mirror of
https://github.com/drasko/codezero.git
synced 2026-02-05 06:23:15 +01:00
Added freeing of pager init memory, but this memory is currently not utilized.
This commit is contained in:
@@ -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__ */
|
||||
|
||||
@@ -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 = .;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user