summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-02-10 02:03:59 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-02-10 02:03:59 +0000
commit1c7762792ff162236c3af1663d12fcb9f9bd10f0 (patch)
treedef744f1f235f5ebffa5ef589c6c967c871caa31 /include/asm-mips64
parent0481e7544584f5401f762fce5f2b8640e1c08e57 (diff)
Okay, we can now touch remote node memory, setup bootmem data structures
per node and allocate per node mem_maps.
Diffstat (limited to 'include/asm-mips64')
-rw-r--r--include/asm-mips64/mmzone.h4
-rw-r--r--include/asm-mips64/pgtable.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-mips64/mmzone.h b/include/asm-mips64/mmzone.h
index d1a097bfa..227bec969 100644
--- a/include/asm-mips64/mmzone.h
+++ b/include/asm-mips64/mmzone.h
@@ -32,6 +32,8 @@ extern int numa_debug(void);
(((p) - PLAT_NODE_DATA(n)->physstart) >> PAGE_SHIFT)
#define PAGE_TO_PLAT_NODE(p) (plat_pg_data_t *)((p)->zone->zone_pgdat)
+#ifdef CONFIG_DISCONTIGMEM
+
/*
* Following are macros that each numa implmentation must define.
*/
@@ -78,4 +80,6 @@ extern int numa_debug(void);
*/
#define LOCAL_BASE_ADDR(kaddr) ((unsigned long)(kaddr) & ~(NODE_MAX_MEM_SIZE-1))
+#endif /* CONFIG_DISCONTIGMEM */
+
#endif /* _ASM_MMZONE_H_ */
diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h
index 73a72ea36..8dc8af0f9 100644
--- a/include/asm-mips64/pgtable.h
+++ b/include/asm-mips64/pgtable.h
@@ -451,7 +451,7 @@ extern void (*update_mmu_cache)(struct vm_area_struct *vma,
#define module_unmap vfree
/* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
-#define PageSkip(page) (0)
+#define PageSkip(page) test_bit(PG_skip, &(page)->flags)
#ifndef CONFIG_DISCONTIGMEM
#define kern_addr_valid(addr) (1)
#endif