Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119471
b: refs/heads/master
c: ab598b6
h: refs/heads/master
i:
  119469: b8cc5b6
  119467: 3e92b6e
  119463: 78b31d5
  119455: a80854b
v: v3
  • Loading branch information
Paul Mackerras committed Nov 30, 2008
1 parent 9bb4bde commit 5b4a83c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 960cedb4e3eedec6394f224fc832c7a23f35a799
refs/heads/master: ab598b6680f1e74c267d1547ee352f3e1e530f89
8 changes: 7 additions & 1 deletion trunk/arch/powerpc/kernel/entry_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,18 @@ system_call_common:
beq- 1f
ld r1,PACAKSAVE(r13)
1: std r10,0(r1)
crclr so
std r11,_NIP(r1)
std r12,_MSR(r1)
std r0,GPR0(r1)
std r10,GPR1(r1)
ACCOUNT_CPU_USER_ENTRY(r10, r11)
/*
* This "crclr so" clears CR0.SO, which is the error indication on
* return from this system call. There must be no cmp instruction
* between it and the "mfcr r9" below, otherwise if XER.SO is set,
* CR0.SO will get set, causing all system calls to appear to fail.
*/
crclr so
std r2,GPR2(r1)
std r3,GPR3(r1)
std r4,GPR4(r1)
Expand Down

0 comments on commit 5b4a83c

Please sign in to comment.