ia64/linux-2.6.18-xen.hg

view include/asm-generic/4level-fixup.h @ 782:9ab1c319531f

merge with linux-2.6.18-xen.hg
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Jan 28 13:07:23 2009 +0900 (2009-01-28)
parents 831230e53067
children
line source
1 #ifndef _4LEVEL_FIXUP_H
2 #define _4LEVEL_FIXUP_H
4 #define __ARCH_HAS_4LEVEL_HACK
5 #define __PAGETABLE_PUD_FOLDED
7 #define PUD_SIZE PGDIR_SIZE
8 #define PUD_MASK PGDIR_MASK
9 #define PTRS_PER_PUD 1
11 #define pud_t pgd_t
13 #define pmd_alloc(mm, pud, address) \
14 ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
15 NULL: pmd_offset(pud, address))
17 #define pud_alloc(mm, pgd, address) (pgd)
18 #define pud_offset(pgd, start) (pgd)
19 #define pud_none(pud) 0
20 #define pud_bad(pud) 0
21 #define pud_present(pud) 1
22 #define pud_ERROR(pud) do { } while (0)
23 #define pud_clear(pud) pgd_clear(pud)
25 #undef pud_free_tlb
26 #define pud_free_tlb(tlb, x) do { } while (0)
27 #define pud_free(x) do { } while (0)
28 #define __pud_free_tlb(tlb, x) do { } while (0)
30 #undef pud_addr_end
31 #define pud_addr_end(addr, end) (end)
33 #endif