diff options
Diffstat (limited to 'arch/riscv/mm/fault.c')
-rw-r--r-- | arch/riscv/mm/fault.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/mm/fault.c b/arch/riscv/mm/fault.c index ceebfc29305b..148c98ca9b45 100644 --- a/arch/riscv/mm/fault.c +++ b/arch/riscv/mm/fault.c | |||
@@ -238,6 +238,10 @@ vmalloc_fault: | |||
238 | * Do _not_ use "tsk->active_mm->pgd" here. | 238 | * Do _not_ use "tsk->active_mm->pgd" here. |
239 | * We might be inside an interrupt in the middle | 239 | * We might be inside an interrupt in the middle |
240 | * of a task switch. | 240 | * of a task switch. |
241 | * | ||
242 | * Note: Use the old spbtr name instead of using the current | ||
243 | * satp name to support binutils 2.29 which doesn't know about | ||
244 | * the privileged ISA 1.10 yet. | ||
241 | */ | 245 | */ |
242 | index = pgd_index(addr); | 246 | index = pgd_index(addr); |
243 | pgd = (pgd_t *)pfn_to_virt(csr_read(sptbr)) + index; | 247 | pgd = (pgd_t *)pfn_to_virt(csr_read(sptbr)) + index; |