Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|---|
| 2 | #ifndef _S390_SECTIONS_H |
| 3 | #define _S390_SECTIONS_H |
| 4 | |
| 5 | #include <asm-generic/sections.h> |
| 6 | |
| 7 | /* |
| 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. |
| 11 | * |
| 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). |
| 16 | */ |
| 17 | #define __bootdata(var) __section(".boot.data." #var) var |
| 18 | |
| 19 | /* |
| 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 |
| 22 | * kernel. |
| 23 | */ |
| 24 | #define __bootdata_preserved(var) __section(".boot.preserved.data." #var) var |
| 25 | |
| 26 | extern char *__samode31, *__eamode31; |
| 27 | extern char *__stext_amode31, *__etext_amode31; |
| 28 | |
| 29 | #endif |
| 30 |
Warning: This file is not a C or C++ file. It does not have highlighting.
