aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci/pci-alchemy.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-05-06 09:36:19 -0400
committerRalf Baechle <ralf@linux-mips.org>2016-05-13 08:02:18 -0400
commit9b5c3399584b6f6aa755dbe11e3cef5776fd279d (patch)
tree52234bb21d945aaa67b85d56ce247ec0736adca5 /arch/mips/pci/pci-alchemy.c
parent5fb59fd2e7f7ee6bfc20ab9c0ef82e33c0057be5 (diff)
MIPS: Add & use CP0_EntryHi ASID definitions
Add definitions for the ASID field in CP0_EntryHi (along with the soon to be used ASIDX field), and use them in a few previously hardcoded cases. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Manuel Lauss <manuel.lauss@gmail.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/13205/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci/pci-alchemy.c')
-rw-r--r--arch/mips/pci/pci-alchemy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/pci-alchemy.c b/arch/mips/pci/pci-alchemy.c
index 28952637a862..c8994c156e2d 100644
--- a/arch/mips/pci/pci-alchemy.c
+++ b/arch/mips/pci/pci-alchemy.c
@@ -76,7 +76,7 @@ static void mod_wired_entry(int entry, unsigned long entrylo0,
76 unsigned long old_ctx; 76 unsigned long old_ctx;
77 77
78 /* Save old context and create impossible VPN2 value */ 78 /* Save old context and create impossible VPN2 value */
79 old_ctx = read_c0_entryhi() & 0xff; 79 old_ctx = read_c0_entryhi() & MIPS_ENTRYHI_ASID;
80 old_pagemask = read_c0_pagemask(); 80 old_pagemask = read_c0_pagemask();
81 write_c0_index(entry); 81 write_c0_index(entry);
82 write_c0_pagemask(pagemask); 82 write_c0_pagemask(pagemask);