patch-2.4.6 linux/include/asm-sh/pgtable-2level.h
Next file: linux/include/asm-sh/pgtable.h
Previous file: linux/include/asm-sh/pgalloc.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Jun 27 13:55:29 2001
- Orig file:
v2.4.5/linux/include/asm-sh/pgtable-2level.h
- Orig date:
Wed Apr 11 21:24:52 2001
diff -u --recursive --new-file v2.4.5/linux/include/asm-sh/pgtable-2level.h linux/include/asm-sh/pgtable-2level.h
@@ -17,6 +17,7 @@
#define PTRS_PER_PTE 1024
+#ifndef __ASSEMBLY__
#define pte_ERROR(e) \
printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
#define pmd_ERROR(e) \
@@ -32,7 +33,7 @@
static inline int pgd_none(pgd_t pgd) { return 0; }
static inline int pgd_bad(pgd_t pgd) { return 0; }
static inline int pgd_present(pgd_t pgd) { return 1; }
-static inline void pgd_clear (pgd_t * pgd) { }
+static inline void pgd_clear (pgd_t * pgdp) { pgd_val(*(pgdp)) = 0; }
/*
* Certain architectures need to do special things when PTEs
@@ -54,5 +55,6 @@
{
return (pmd_t *) dir;
}
+#endif /* !__ASSEMBLY__ */
#endif /* __ASM_SH_PGTABLE_2LEVEL_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)