diff options
Diffstat (limited to 'arch/x86/mm/kmemcheck')
-rw-r--r-- | arch/x86/mm/kmemcheck/shadow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/mm/kmemcheck/shadow.c b/arch/x86/mm/kmemcheck/shadow.c index e7346d3873b3..e773b6bd0079 100644 --- a/arch/x86/mm/kmemcheck/shadow.c +++ b/arch/x86/mm/kmemcheck/shadow.c | |||
@@ -116,6 +116,14 @@ void kmemcheck_mark_uninitialized_pages(struct page *p, unsigned int n) | |||
116 | kmemcheck_mark_uninitialized(page_address(&p[i]), PAGE_SIZE); | 116 | kmemcheck_mark_uninitialized(page_address(&p[i]), PAGE_SIZE); |
117 | } | 117 | } |
118 | 118 | ||
119 | void kmemcheck_mark_initialized_pages(struct page *p, unsigned int n) | ||
120 | { | ||
121 | unsigned int i; | ||
122 | |||
123 | for (i = 0; i < n; ++i) | ||
124 | kmemcheck_mark_initialized(page_address(&p[i]), PAGE_SIZE); | ||
125 | } | ||
126 | |||
119 | enum kmemcheck_shadow kmemcheck_shadow_test(void *shadow, unsigned int size) | 127 | enum kmemcheck_shadow kmemcheck_shadow_test(void *shadow, unsigned int size) |
120 | { | 128 | { |
121 | uint8_t *x; | 129 | uint8_t *x; |