git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
include
/
asm-m68k
/
sun3_pgalloc.h
diff --git
a/include/asm-m68k/sun3_pgalloc.h
b/include/asm-m68k/sun3_pgalloc.h
index
3b7f6cc
..
fd82411
100644
(file)
--- a/
include/asm-m68k/sun3_pgalloc.h
+++ b/
include/asm-m68k/sun3_pgalloc.h
@@
-1,5
+1,5
@@
/* sun3_pgalloc.h --
/* 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)
*
*
* 02/27/2002 -- Modified to support "highpte" implementation in 2.5.5 (Sam)
@@
-31,31
+31,28
@@
static inline void pte_free(struct page *page)
__free_page(page);
}
__free_page(page);
}
-static inline void __pte_free_tlb(struct mmu_gather *tlb, struct page *page)
-{
- tlb_remove_page(tlb, page);
-}
+#define __pte_free_tlb(tlb,pte) tlb_remove_page((tlb),(pte))
-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;
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);
}
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;
unsigned long address)
{
struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0);
if (page == NULL)
return NULL;
-
+
clear_highpage(page);
return page;
clear_highpage(page);
return page;