mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 05:46:47 +07:00
5a79859ae0
Remove the 31 bit support in order to reduce maintenance cost and
effectively remove dead code. Since a couple of years there is no
distribution left that comes with a 31 bit kernel.
The 31 bit kernel also has been broken since more than a year before
anybody noticed. In addition I added a removal warning to the kernel
shown at ipl for 5 minutes: a960062e58
("s390: add 31 bit warning
message") which let everybody know about the plan to remove 31 bit
code. We didn't get any response.
Given that the last 31 bit only machine was introduced in 1999 let's
remove the code.
Anybody with 31 bit user space code can still use the compat mode.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
67 lines
1.3 KiB
C
67 lines
1.3 KiB
C
/*
|
|
* Implementation of s390 diagnose codes
|
|
*
|
|
* Copyright IBM Corp. 2007
|
|
* Author(s): Michael Holzheu <holzheu@de.ibm.com>
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <asm/diag.h>
|
|
|
|
/*
|
|
* Diagnose 14: Input spool file manipulation
|
|
*/
|
|
int diag14(unsigned long rx, unsigned long ry1, unsigned long subcode)
|
|
{
|
|
register unsigned long _ry1 asm("2") = ry1;
|
|
register unsigned long _ry2 asm("3") = subcode;
|
|
int rc = 0;
|
|
|
|
asm volatile(
|
|
" sam31\n"
|
|
" diag %2,2,0x14\n"
|
|
" sam64\n"
|
|
" ipm %0\n"
|
|
" srl %0,28\n"
|
|
: "=d" (rc), "+d" (_ry2)
|
|
: "d" (rx), "d" (_ry1)
|
|
: "cc");
|
|
|
|
return rc;
|
|
}
|
|
EXPORT_SYMBOL(diag14);
|
|
|
|
/*
|
|
* Diagnose 210: Get information about a virtual device
|
|
*/
|
|
int diag210(struct diag210 *addr)
|
|
{
|
|
/*
|
|
* diag 210 needs its data below the 2GB border, so we
|
|
* use a static data area to be sure
|
|
*/
|
|
static struct diag210 diag210_tmp;
|
|
static DEFINE_SPINLOCK(diag210_lock);
|
|
unsigned long flags;
|
|
int ccode;
|
|
|
|
spin_lock_irqsave(&diag210_lock, flags);
|
|
diag210_tmp = *addr;
|
|
|
|
asm volatile(
|
|
" lhi %0,-1\n"
|
|
" sam31\n"
|
|
" diag %1,0,0x210\n"
|
|
"0: ipm %0\n"
|
|
" srl %0,28\n"
|
|
"1: sam64\n"
|
|
EX_TABLE(0b, 1b)
|
|
: "=&d" (ccode) : "a" (&diag210_tmp) : "cc", "memory");
|
|
|
|
*addr = diag210_tmp;
|
|
spin_unlock_irqrestore(&diag210_lock, flags);
|
|
|
|
return ccode;
|
|
}
|
|
EXPORT_SYMBOL(diag210);
|