1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _S390_SECTIONS_H
3 #define _S390_SECTIONS_H
5 #include <asm-generic/sections.h>
8 * .boot.data section contains variables "shared" between the decompressor and
9 * the decompressed kernel. The decompressor will store values in them, and
10 * copy over to the decompressed image before starting it.
12 * Each variable end up in its own intermediate section .boot.data.<var name>,
13 * those sections are later sorted by alignment + name and merged together into
14 * final .boot.data section, which should be identical in the decompressor and
15 * the decompressed kernel (that is checked during the build).
17 #define __bootdata(var) __section(".boot.data." #var) var
20 * .boot.preserved.data is similar to .boot.data, but it is not part of the
21 * .init section and thus will be preserved for later use in the decompressed
24 #define __bootdata_preserved(var) __section(".boot.preserved.data." #var) var
26 extern unsigned long __samode31, __eamode31;
27 extern unsigned long __stext_amode31, __etext_amode31;