repo.or.cz
/
zen-stable.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git]
/
arch
/
x86
/
mm
/
kmemcheck
/
pte.c
blob
4ead26eeaf96c783463e8626c41b4df2c57cbfda
1
#include <linux/mm.h>
2
3
#include <asm/pgtable.h>
4
5
#include
"pte.h"
6
7
pte_t
*
kmemcheck_pte_lookup
(
unsigned long
address
)
8
{
9
pte_t
*
pte
;
10
unsigned int
level
;
11
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
;
19
20
return
pte
;
21
}
22