Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58604
b: refs/heads/master
c: dc41233
h: refs/heads/master
v: v3
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Jul 10, 2007
1 parent 0bd3f15 commit 035fa7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a88367088a6b9964d99694b30d80720f019bea2
refs/heads/master: dc4123303b54657389c952049bf5738dd753d004
22 changes: 7 additions & 15 deletions trunk/drivers/s390/cio/device_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
/*
* diag210 is used under VM to get information about a virtual device
*/
#ifdef CONFIG_64BIT
int
diag210(struct diag210 * addr)
{
Expand All @@ -43,6 +42,7 @@ diag210(struct diag210 * addr)
spin_lock_irqsave(&diag210_lock, flags);
diag210_tmp = *addr;

#ifdef CONFIG_64BIT
asm volatile(
" lhi %0,-1\n"
" sam31\n"
Expand All @@ -51,31 +51,23 @@ diag210(struct diag210 * addr)
" srl %0,28\n"
"1: sam64\n"
EX_TABLE(0b,1b)
: "=&d" (ccode) : "a" (__pa(&diag210_tmp)) : "cc", "memory");

*addr = diag210_tmp;
spin_unlock_irqrestore(&diag210_lock, flags);

return ccode;
}
: "=&d" (ccode) : "a" (&diag210_tmp) : "cc", "memory");
#else
int
diag210(struct diag210 * addr)
{
int ccode;

asm volatile(
" lhi %0,-1\n"
" diag %1,0,0x210\n"
"0: ipm %0\n"
" srl %0,28\n"
"1:\n"
EX_TABLE(0b,1b)
: "=&d" (ccode) : "a" (__pa(addr)) : "cc", "memory");
: "=&d" (ccode) : "a" (&diag210_tmp) : "cc", "memory");
#endif

*addr = diag210_tmp;
spin_unlock_irqrestore(&diag210_lock, flags);

return ccode;
}
#endif

/*
* Input :
Expand Down

0 comments on commit 035fa7a

Please sign in to comment.