Commit 6de02a9e authored by David S. Miller's avatar David S. Miller

Sparc64: Implement pfn_pte.

parent e8b32a28
...@@ -195,14 +195,13 @@ extern unsigned long pfn_base; ...@@ -195,14 +195,13 @@ extern unsigned long pfn_base;
extern struct page *mem_map_zero; extern struct page *mem_map_zero;
#define ZERO_PAGE(vaddr) (mem_map_zero) #define ZERO_PAGE(vaddr) (mem_map_zero)
/* Warning: These take pointers to page structs now... */ #define pfn_pte(pfn, prot) \
#define mk_pte(page, pgprot) \ __pte((((pfn)+(pfn_base)) << PAGE_SHIFT) | pgprot_val(prot) | _PAGE_SZBITS)
__pte((((page - mem_map) << PAGE_SHIFT)+phys_base) | pgprot_val(pgprot) | _PAGE_SZBITS) #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
#define page_pte_prot(page, prot) mk_pte(page, prot) #define page_pte_prot(page, prot) mk_pte(page, prot)
#define page_pte(page) page_pte_prot(page, __pgprot(0)) #define page_pte(page) page_pte_prot(page, __pgprot(0))
#define mk_pte_phys(physpage, pgprot) (__pte((physpage) | pgprot_val(pgprot) | _PAGE_SZBITS))
extern inline pte_t pte_modify(pte_t orig_pte, pgprot_t new_prot) extern inline pte_t pte_modify(pte_t orig_pte, pgprot_t new_prot)
{ {
pte_t __pte; pte_t __pte;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment