The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame^] | 1 | /**************************************************************************** |
| 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 |
| 14 | |
| 15 | #ifndef __ASSEMBLY__ |
| 16 | |
| 17 | #define __PAGETABLE_PUD_FOLDED |
| 18 | |
| 19 | typedef struct { pgd_t pgd; } pud_t; |
| 20 | |
| 21 | #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)) |
| 25 | |
| 26 | #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 |
| 37 | #define pud_addr_end(addr, end) (end) |
| 38 | #endif |
| 39 | #endif |