--- zzzz-none-000/linux-2.6.13.1/include/linux/mmzone.h 2005-09-10 02:42:58.000000000 +0000 +++ ohio-7170-487/linux-2.6.13.1/include/linux/mmzone.h 2006-11-06 16:02:03.000000000 +0000 @@ -581,7 +581,33 @@ #endif #ifndef early_pfn_valid +#ifdef CONFIG_MIPS_OHIO +#define early_pfn_valid(pfn) ((pfn) >= (CONFIG_MIPS_OHIO_PHY_MEMSTART >> 12)) +/* static __inline int early_pfn_valid(unsigned long pfn) { */ + /*--- static unsigned int count = 0; ---*/ + /*--- if((count++ & 0xFF) == 0) ---*/ + /*--- printk("[pfn=0x%lx]", pfn); ---*/ +/* return pfn >= (CONFIG_MIPS_OHIO_PHY_MEMSTART >> 12); */ +/* } */ +#elif CONFIG_MIPS_AR7 +#define early_pfn_valid(pfn) ((pfn) >= (CONFIG_MIPS_AR7_PHY_MEMSTART >> 12)) +/* static __inline int early_pfn_valid(unsigned long pfn) { */ + /*--- static unsigned int count = 0; ---*/ + /*--- if((count++ & 0xFF) == 0) ---*/ + /*--- printk("[pfn=0x%lx]", pfn); ---*/ +/* return pfn >= (CONFIG_MIPS_OHIO_PHY_MEMSTART >> 12); */ +/* } */ +#elif CONFIG_MIPS_UR8 +#define early_pfn_valid(pfn) ((pfn) >= (CONFIG_MIPS_UR8_PHY_MEMSTART >> 12)) +/* static __inline int early_pfn_valid(unsigned long pfn) { */ + /*--- static unsigned int count = 0; ---*/ + /*--- if((count++ & 0xFF) == 0) ---*/ + /*--- printk("[pfn=0x%lx]", pfn); ---*/ +/* return pfn >= (CONFIG_MIPS_UR8_PHY_MEMSTART >> 12); */ +/* } */ +#else /*--- #ifdef CONFIG_MIPS_OHIO ---*/ #define early_pfn_valid(pfn) (1) +#endif /*--- #else ---*/ /*--- #ifdef CONFIG_MIPS_OHIO ---*/ #endif void memory_present(int nid, unsigned long start, unsigned long end);