Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _S390_SECTIONS_H
0003 #define _S390_SECTIONS_H
0004 
0005 #include <asm-generic/sections.h>
0006 
0007 /*
0008  * .boot.data section contains variables "shared" between the decompressor and
0009  * the decompressed kernel. The decompressor will store values in them, and
0010  * copy over to the decompressed image before starting it.
0011  *
0012  * Each variable end up in its own intermediate section .boot.data.<var name>,
0013  * those sections are later sorted by alignment + name and merged together into
0014  * final .boot.data section, which should be identical in the decompressor and
0015  * the decompressed kernel (that is checked during the build).
0016  */
0017 #define __bootdata(var) __section(".boot.data." #var) var
0018 
0019 /*
0020  * .boot.preserved.data is similar to .boot.data, but it is not part of the
0021  * .init section and thus will be preserved for later use in the decompressed
0022  * kernel.
0023  */
0024 #define __bootdata_preserved(var) __section(".boot.preserved.data." #var) var
0025 
0026 extern unsigned long __samode31, __eamode31;
0027 extern unsigned long __stext_amode31, __etext_amode31;
0028 
0029 #endif