GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / x86 / mm / kmemcheck / pte.c
blobb32de3d8ca5f249ef5a0fa06ff304f99c6d2dbcd
1 #include <linux/mm.h>
3 #include <asm/pgtable.h>
5 #include "pte.h"
7 pte_t *kmemcheck_pte_lookup(unsigned long address)
9 pte_t *pte;
10 unsigned int level;
12 pte = lookup_address(address, &level);
13 if (!pte)
14 return NULL;
15 if (level != PG_LEVEL_4K)
16 return NULL;
17 if (!pte_hidden(*pte))
18 return NULL;
20 return pte;