zipl/boot: make stage2.h assembler compatible

In preparation for the linker script generation make the stage2.h
assembler compatible.

Reviewed-by: Philipp Rudo <prudo@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2020-03-26 09:08:58 +01:00
committed by Jan Höppner
parent f4f2220693
commit e0ffb3c584

View File

@@ -12,15 +12,20 @@
#ifndef COMMON_H
#define COMMON_H
#include "cio.h"
#include "error.h"
#include "libc.h"
#include "boot/s390.h"
#include "lib/zt_common.h"
#define DESCR_PER_BLOCK 16
#define DESCR_PER_BLOCK _AC(16, U)
/* ADRESS */
#define STAGE2_DESC 0x78
#define STAGE2_DESC _AC(0x78, UL)
#ifndef __ASSEMBLER__
#include "libc.h"
#include "boot/s390.h"
#include "cio.h"
#include "error.h"
/* Layout of ECKD disk block pointer */
struct eckd_blockptr {
@@ -74,5 +79,6 @@ int extract_length(void *);
int is_zero_block(void *);
void kdump_stage2(unsigned long);
#endif /* __ASSEMBLER__ */
#endif /* COMMON_H */