mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Move COMMAND_LINE_EXTRA to `boot/loaders_layout.h` so it can be reused by `menu.c`and `stage3.c`. Additionally, reuse COMMAND_LINE_SIZE from `linux_layout.h` in `menu.c`. 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>
34 lines
844 B
C
34 lines
844 B
C
/*
|
|
* zipl stage2/stage3 layout definitions
|
|
*
|
|
* Copyright IBM Corp. 2020
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*
|
|
*/
|
|
|
|
#ifndef LOADERS_LAYOUT_H
|
|
#define LOADERS_LAYOUT_H
|
|
|
|
#include "lib/zt_common.h"
|
|
#include "linux_layout.h"
|
|
|
|
#define STAGE3_ENTRY _AC(0xa000, UL)
|
|
|
|
#define STAGE2_LOAD_ADDRESS _AC(0x2000, UL)
|
|
#define STAGE3_LOAD_ADDRESS STAGE3_ENTRY
|
|
#define IMAGE_LOAD_ADDRESS IMAGE_ENTRY
|
|
|
|
#define STAGE3_HEAP_SIZE _AC(0x4000, UL)
|
|
#define STAGE3_HEAP_ADDRESS _AC(0x2000, UL)
|
|
#define STAGE3_STACK_SIZE _AC(0x1000, UL)
|
|
#define STAGE3_STACK_ADDRESS _AC(0xF000, UL)
|
|
#define STAGE3_PARAMS_ADDRESS _AC(0x9000, UL)
|
|
|
|
#define COMMAND_LINE_EXTRA _AC(0xE000, UL)
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#endif /* __ASSEMBLER__ */
|
|
#endif /* LOADERS_LAYOUT_H */
|