blob: 91ae7f498166c023792c6bc638ea39d84a19329d [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _4LEVEL_FIXUP_H
13#define _4LEVEL_FIXUP_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#define __ARCH_HAS_4LEVEL_HACK
16#define __PAGETABLE_PUD_FOLDED
Ben Cheng4b29af02012-03-07 16:14:53 -080017
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080018#define PUD_SIZE PGDIR_SIZE
19#define PUD_MASK PGDIR_MASK
20#define PTRS_PER_PUD 1
Ben Cheng4b29af02012-03-07 16:14:53 -080021
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022#define pud_t pgd_t
Ben Cheng4b29af02012-03-07 16:14:53 -080023
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#define pmd_alloc(mm, pud, address) ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? NULL: pmd_offset(pud, address))
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define pud_alloc(mm, pgd, address) (pgd)
27#define pud_offset(pgd, start) (pgd)
28#define pud_none(pud) 0
29#define pud_bad(pud) 0
30#define pud_present(pud) 1
31#define pud_ERROR(pud) do { } while (0)
32#define pud_clear(pud) pgd_clear(pud)
Ben Cheng4b29af02012-03-07 16:14:53 -080033
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#undef pud_free_tlb
35#define pud_free_tlb(tlb, x) do { } while (0)
36#define pud_free(x) do { } while (0)
37#define __pud_free_tlb(tlb, x) do { } while (0)
Ben Cheng4b29af02012-03-07 16:14:53 -080038
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#undef pud_addr_end
40#define pud_addr_end(addr, end) (end)
Ben Cheng4b29af02012-03-07 16:14:53 -080041
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#endif