Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64120
b: refs/heads/master
c: b09e789
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and Tony Luck committed Aug 17, 2007
1 parent bad16b3 commit 04ab82f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: e8c59c0cf9c91dccfb6367c306d753500d5a0150
refs/heads/master: b09e789c438c406bd9bcaac6f1c940a75007e59f
10 changes: 7 additions & 3 deletions trunk/arch/ia64/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,14 @@ access_uarea (struct task_struct *child, unsigned long addr,
return 0;

case PT_CR_IPSR:
if (write_access)
pt->cr_ipsr = ((*data & IPSR_MASK)
if (write_access) {
unsigned long tmp = *data;
/* psr.ri==3 is a reserved value: SDM 2:25 */
if ((tmp & IA64_PSR_RI) == IA64_PSR_RI)
tmp &= ~IA64_PSR_RI;
pt->cr_ipsr = ((tmp & IPSR_MASK)
| (pt->cr_ipsr & ~IPSR_MASK));
else
} else
*data = (pt->cr_ipsr & IPSR_MASK);
return 0;

Expand Down

0 comments on commit 04ab82f

Please sign in to comment.