Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79812
b: refs/heads/master
c: 4757d7d
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent add87ad commit 1bc2eac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b80fc721bed2635c7f0b198e1c862a4596dc2cd
refs/heads/master: 4757d7d8d00c5f8b2c176ca03b0a8eabbc206664
3 changes: 0 additions & 3 deletions trunk/include/asm-x86/mmzone_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ static inline int pfn_to_nid(unsigned long pfn)
__pgdat->node_start_pfn + __pgdat->node_spanned_pages; \
})

/* XXX: FIXME -- wli */
#define kern_addr_valid(kaddr) (0)

#ifdef CONFIG_X86_NUMAQ /* we have contiguous memory on NUMA-Q */
#define pfn_valid(pfn) ((pfn) < num_physpages)
#else
Expand Down
8 changes: 7 additions & 1 deletion trunk/include/asm-x86/pgtable_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,15 @@ static inline void paravirt_pagetable_setup_done(pgd_t *base)

#endif /* !__ASSEMBLY__ */

/*
* kern_addr_valid() is (1) for FLATMEM and (0) for
* SPARSEMEM and DISCONTIGMEM
*/
#ifdef CONFIG_FLATMEM
#define kern_addr_valid(addr) (1)
#endif /* CONFIG_FLATMEM */
#else
#define kern_addr_valid(kaddr) (0)
#endif

#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
remap_pfn_range(vma, vaddr, pfn, size, prot)
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-x86/sparsemem_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
#define MAX_PHYSMEM_BITS 32
#endif

/* XXX: FIXME -- wli */
#define kern_addr_valid(kaddr) (0)

#endif /* CONFIG_SPARSEMEM */
#endif /* _I386_SPARSEMEM_H */

0 comments on commit 1bc2eac

Please sign in to comment.