mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
s390/chsc: Add exception handler for CHSC instruction
am: dc31841fcd
Change-Id: I8319561164624bb5257953980b634c1b1433cc85
This commit is contained in:
@@ -165,13 +165,15 @@ int tpi(struct tpi_info *addr)
|
||||
int chsc(void *chsc_area)
|
||||
{
|
||||
typedef struct { char _[4096]; } addr_type;
|
||||
int cc;
|
||||
int cc = -EIO;
|
||||
|
||||
asm volatile(
|
||||
" .insn rre,0xb25f0000,%2,0\n"
|
||||
" ipm %0\n"
|
||||
"0: ipm %0\n"
|
||||
" srl %0,28\n"
|
||||
: "=d" (cc), "=m" (*(addr_type *) chsc_area)
|
||||
"1:\n"
|
||||
EX_TABLE(0b, 1b)
|
||||
: "+d" (cc), "=m" (*(addr_type *) chsc_area)
|
||||
: "d" (chsc_area), "m" (*(addr_type *) chsc_area)
|
||||
: "cc");
|
||||
trace_s390_cio_chsc(chsc_area, cc);
|
||||
|
||||
Reference in New Issue
Block a user