mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 03:59:01 +07:00
d1b52a4388
Introduce .boot.data section which is "shared" between the decompressor code and the decompressed kernel. The decompressor will store values in it, and copy over to the decompressed image before starting it. This method allows to avoid using pre-defined addresses and other hacks to pass values between those boot phases. .boot.data section is a part of init data, and will be freed after kernel initialization is complete. For uncompressed kernel image, .boot.data section is basically the same as .init.data Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
20 lines
712 B
C
20 lines
712 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _S390_SECTIONS_H
|
|
#define _S390_SECTIONS_H
|
|
|
|
#include <asm-generic/sections.h>
|
|
|
|
/*
|
|
* .boot.data section contains variables "shared" between the decompressor and
|
|
* the decompressed kernel. The decompressor will store values in them, and
|
|
* copy over to the decompressed image before starting it.
|
|
*
|
|
* Each variable end up in its own intermediate section .boot.data.<var name>,
|
|
* those sections are later sorted by alignment + name and merged together into
|
|
* final .boot.data section, which should be identical in the decompressor and
|
|
* the decompressed kernel (that is checked during the build).
|
|
*/
|
|
#define __bootdata(var) __section(.boot.data.var) var
|
|
|
|
#endif
|