blob: 585f81654bc5bbce6f2a863879dbaf52d2736cc9 [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 _PGTABLE_NOPUD_H
13#define _PGTABLE_NOPUD_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#ifndef __ASSEMBLY__
Ben Cheng4b29af02012-03-07 16:14:53 -080016
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017#define __PAGETABLE_PUD_FOLDED
Ben Cheng4b29af02012-03-07 16:14:53 -080018
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019typedef struct { pgd_t pgd; } pud_t;
Ben Cheng4b29af02012-03-07 16:14:53 -080020
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#define PUD_SHIFT PGDIR_SHIFT
22#define PTRS_PER_PUD 1
23#define PUD_SIZE (1UL << PUD_SHIFT)
24#define PUD_MASK (~(PUD_SIZE-1))
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define pud_ERROR(pud) (pgd_ERROR((pud).pgd))
27#define pgd_populate(mm, pgd, pud) do { } while (0)
28#define set_pgd(pgdptr, pgdval) set_pud((pud_t *)(pgdptr), (pud_t) { pgdval })
29#define pud_val(x) (pgd_val((x).pgd))
30#define __pud(x) ((pud_t) { __pgd(x) } )
31#define pgd_page(pgd) (pud_page((pud_t){ pgd }))
32#define pgd_page_kernel(pgd) (pud_page_kernel((pud_t){ pgd }))
33#define pud_alloc_one(mm, address) NULL
34#define pud_free(x) do { } while (0)
35#define __pud_free_tlb(tlb, x) do { } while (0)
36#undef pud_addr_end
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080037#define pud_addr_end(addr, end) (end)
38#endif
39#endif