riscv: rename sptbr to satp
satp is the name used by the current privileged spec 1.10, use it instead of the old name. The most recent release binutils release (2.29) doesn't know about the satp name yet, so stick to the name from the previous privileged ISA release and comment on the fact. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:

committed by
Palmer Dabbelt

parent
372def1f93
commit
7549cdf59d
@@ -41,7 +41,12 @@ static inline void destroy_context(struct mm_struct *mm)
|
||||
|
||||
static inline void set_pgdir(pgd_t *pgd)
|
||||
{
|
||||
csr_write(sptbr, virt_to_pfn(pgd) | SPTBR_MODE);
|
||||
/*
|
||||
* Use the old spbtr name instead of using the current satp
|
||||
* name to support binutils 2.29 which doesn't know about the
|
||||
* privileged ISA 1.10 yet.
|
||||
*/
|
||||
csr_write(sptbr, virt_to_pfn(next->pgd) | SATP_MODE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user