sections.h 1.0 KB

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