projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f25f39
)
[SPARC64]: Document the instruction checks we do in do_sparc64_fault().
author
David S. Miller
<davem@sunset.davemloft.net>
Tue, 28 Mar 2006 21:32:24 +0000
(13:32 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Sat, 1 Apr 2006 07:03:35 +0000
(23:03 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/mm/fault.c
b/arch/sparc64/mm/fault.c
index
0db2f7d
..
6e002aa
100644
(file)
--- a/
arch/sparc64/mm/fault.c
+++ b/
arch/sparc64/mm/fault.c
@@
-327,8
+327,12
@@
asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
insn = get_fault_insn(regs, 0);
if (!insn)
goto continue_fault;
+ /* All loads, stores and atomics have bits 30 and 31 both set
+ * in the instruction. Bit 21 is set in all stores, but we
+ * have to avoid prefetches which also have bit 21 set.
+ */
if ((insn & 0xc0200000) == 0xc0200000 &&
- (insn & 0x
1780000) != 0x
1680000) {
+ (insn & 0x
01780000) != 0x0
1680000) {
/* Don't bother updating thread struct value,
* because update_mmu_cache only cares which tlb
* the access came from.