mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Introduce a struct definition for the stage3 parameters used by stage3.c. This makes it easier to maintain the stage3 linker script and it allows us to consolidate the stage3_params structs defined in `stage3.h` and `include/boot.h` as well as the stage3 flag macros. Reviewed-by: Philipp Rudo <prudo@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
44 lines
770 B
Plaintext
44 lines
770 B
Plaintext
/*
|
|
* Memory layout for stage 3
|
|
* =========================
|
|
*
|
|
* General memory layout
|
|
* ---------------------
|
|
*
|
|
* 0x0000-0x1fff Lowcore
|
|
* 0x2000-0x5fff Memory allocation (heap)
|
|
* 0x6000-0x8fff free
|
|
* 0x9000-0x9fff Stage3 parameter
|
|
* 0xa000-0xdfff Stage3 code + data
|
|
* 0xf000-0xffff Stack
|
|
*/
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0x0;
|
|
|
|
. = 0x2000;
|
|
__heap_start = .;
|
|
. = 0x6000;
|
|
__heap_stop = .;
|
|
|
|
|
|
/* stage 3 parameter */
|
|
. = 0x9000;
|
|
_stage3_parms = .;
|
|
|
|
. = 0xa000;
|
|
.text.start : { *(.text.start) }
|
|
.text : { *(.text) }
|
|
__ex_table_start = .;
|
|
.ex_table : { *(.ex_table) }
|
|
__ex_table_stop = .;
|
|
.eh_frame : { *(.eh_frame) }
|
|
|
|
__bss_start = .;
|
|
.bss : { *(.bss) }
|
|
__bss_stop = .;
|
|
.rodata : {*(.rodata) }
|
|
.data : { *(.data) }
|
|
}
|