projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc64: Fix top-level fault handling bugs.
[firefly-linux-kernel-4.4.55.git]
/
arch
/
sparc
/
mm
/
hypersparc.S
diff --git
a/arch/sparc/mm/hypersparc.S
b/arch/sparc/mm/hypersparc.S
index 44aad32eeb4e604ff1f17730f218285f80659807..969f96450f690a8bc06c159bfc0045479f55a006 100644
(file)
--- a/
arch/sparc/mm/hypersparc.S
+++ b/
arch/sparc/mm/hypersparc.S
@@
-74,7
+74,7
@@
hypersparc_flush_cache_mm_out:
/* The things we do for performance... */
hypersparc_flush_cache_range:
/* The things we do for performance... */
hypersparc_flush_cache_range:
- ld [%o0 +
0x0], %o0 /* XXX vma->vm_mm, GROSS XXX */
+ ld [%o0 +
VMA_VM_MM], %o0
#ifndef CONFIG_SMP
ld [%o0 + AOFF_mm_context], %g1
cmp %g1, -1
#ifndef CONFIG_SMP
ld [%o0 + AOFF_mm_context], %g1
cmp %g1, -1
@@
-163,7
+163,7
@@
hypersparc_flush_cache_range_out:
*/
/* Verified, my ass... */
hypersparc_flush_cache_page:
*/
/* Verified, my ass... */
hypersparc_flush_cache_page:
- ld [%o0 +
0x0], %o0 /* XXX vma->vm_mm, GROSS XXX */
+ ld [%o0 +
VMA_VM_MM], %o0
ld [%o0 + AOFF_mm_context], %g2
#ifndef CONFIG_SMP
cmp %g2, -1
ld [%o0 + AOFF_mm_context], %g2
#ifndef CONFIG_SMP
cmp %g2, -1
@@
-284,7
+284,7
@@
hypersparc_flush_tlb_mm_out:
sta %g5, [%g1] ASI_M_MMUREGS
hypersparc_flush_tlb_range:
sta %g5, [%g1] ASI_M_MMUREGS
hypersparc_flush_tlb_range:
- ld [%o0 +
0x00], %o0 /* XXX vma->vm_mm GROSS XXX */
+ ld [%o0 +
VMA_VM_MM], %o0
mov SRMMU_CTX_REG, %g1
ld [%o0 + AOFF_mm_context], %o3
lda [%g1] ASI_M_MMUREGS, %g5
mov SRMMU_CTX_REG, %g1
ld [%o0 + AOFF_mm_context], %o3
lda [%g1] ASI_M_MMUREGS, %g5
@@
-307,7
+307,7
@@
hypersparc_flush_tlb_range_out:
sta %g5, [%g1] ASI_M_MMUREGS
hypersparc_flush_tlb_page:
sta %g5, [%g1] ASI_M_MMUREGS
hypersparc_flush_tlb_page:
- ld [%o0 +
0x00], %o0 /* XXX vma->vm_mm GROSS XXX */
+ ld [%o0 +
VMA_VM_MM], %o0
mov SRMMU_CTX_REG, %g1
ld [%o0 + AOFF_mm_context], %o3
andn %o1, (PAGE_SIZE - 1), %o1
mov SRMMU_CTX_REG, %g1
ld [%o0 + AOFF_mm_context], %o3
andn %o1, (PAGE_SIZE - 1), %o1