X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-m68k%2Fsun3_pgalloc.h;h=d00e10ff6e80ced277f8b713b8f25efc52d06f6b;hb=da7238bfbc1c5267bb3c9a79e03b6c296839a07e;hp=3b7f6cc2d38c61ac4b9382db05456a32bf4fceaa;hpb=86090fcac5e27b630656fe3d963a6b80e26dac44;p=linux-2.6.git diff --git a/include/asm-m68k/sun3_pgalloc.h b/include/asm-m68k/sun3_pgalloc.h index 3b7f6cc2d..d00e10ff6 100644 --- a/include/asm-m68k/sun3_pgalloc.h +++ b/include/asm-m68k/sun3_pgalloc.h @@ -1,5 +1,5 @@ /* sun3_pgalloc.h -- - * reorganization around 2.3.39, routines moved from sun3_pgtable.h + * reorganization around 2.3.39, routines moved from sun3_pgtable.h * * * 02/27/2002 -- Modified to support "highpte" implementation in 2.5.5 (Sam) @@ -36,26 +36,26 @@ static inline void __pte_free_tlb(struct mmu_gather *tlb, struct page *page) tlb_remove_page(tlb, page); } -static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, +static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) { unsigned long page = __get_free_page(GFP_KERNEL|__GFP_REPEAT); if (!page) return NULL; - + memset((void *)page, 0, PAGE_SIZE); return (pte_t *) (page); } -static inline struct page *pte_alloc_one(struct mm_struct *mm, +static inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) { struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); if (page == NULL) return NULL; - + clear_highpage(page); return page;