mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
0a87c5cfc0
There are several s390 diagnose calls, which must be executed below the 2GB memory boundary. In order to enforce this, those diagnoses must be compiled into the kernel. Currently diag 14 can be called within the vmur kernel module from addresses above 2GB. This leads to specification exceptions. This patch moves diag10, diag14 and diag210 into the new diag.c file. Signed-off-by: Michael Holzheu <holzheu@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/*
|
|
* s390 diagnose functions
|
|
*
|
|
* Copyright IBM Corp. 2007
|
|
* Author(s): Michael Holzheu <holzheu@de.ibm.com>
|
|
*/
|
|
|
|
#ifndef _ASM_S390_DIAG_H
|
|
#define _ASM_S390_DIAG_H
|
|
|
|
/*
|
|
* Diagnose 10: Release pages
|
|
*/
|
|
extern void diag10(unsigned long addr);
|
|
|
|
/*
|
|
* Diagnose 14: Input spool file manipulation
|
|
*/
|
|
extern int diag14(unsigned long rx, unsigned long ry1, unsigned long subcode);
|
|
|
|
/*
|
|
* Diagnose 210: Get information about a virtual device
|
|
*/
|
|
struct diag210 {
|
|
u16 vrdcdvno; /* device number (input) */
|
|
u16 vrdclen; /* data block length (input) */
|
|
u8 vrdcvcla; /* virtual device class (output) */
|
|
u8 vrdcvtyp; /* virtual device type (output) */
|
|
u8 vrdcvsta; /* virtual device status (output) */
|
|
u8 vrdcvfla; /* virtual device flags (output) */
|
|
u8 vrdcrccl; /* real device class (output) */
|
|
u8 vrdccrty; /* real device type (output) */
|
|
u8 vrdccrmd; /* real device model (output) */
|
|
u8 vrdccrft; /* real device feature (output) */
|
|
} __attribute__((packed, aligned(4)));
|
|
|
|
extern int diag210(struct diag210 *addr);
|
|
|
|
#endif /* _ASM_S390_DIAG_H */
|