Skip to content

Commit

Permalink
PTE workaround, now pthread works
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyself committed Oct 26, 2021
1 parent d45fe47 commit e635dfa
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions arch/riscv/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,17 +498,6 @@ static inline pgprot_t pgprot_noncached(pgprot_t _prot)
return __pgprot(prot);
}

#define pgprot_writecombine pgprot_writecombine
static inline pgprot_t pgprot_writecombine(pgprot_t _prot)
{
unsigned long prot = pgprot_val(_prot);

prot &= ~_PAGE_DMA_MASK;
prot |= _PAGE_DMA_WC;

return __pgprot(prot);
}

#define __HAVE_PHYS_MEM_ACCESS_PROT
extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
unsigned long size, pgprot_t vma_prot);
Expand Down

0 comments on commit e635dfa

Please sign in to comment.