aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/fixmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/fixmap.h')
-rw-r--r--include/asm-x86/fixmap.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/asm-x86/fixmap.h b/include/asm-x86/fixmap.h
index 934d6b49b530..44d4f8217349 100644
--- a/include/asm-x86/fixmap.h
+++ b/include/asm-x86/fixmap.h
@@ -9,8 +9,18 @@
9 9
10extern int fixmaps_set; 10extern int fixmaps_set;
11 11
12extern void __set_fixmap(enum fixed_addresses idx, 12void __native_set_fixmap(enum fixed_addresses idx, pte_t pte);
13 unsigned long phys, pgprot_t flags); 13void native_set_fixmap(enum fixed_addresses idx,
14 unsigned long phys, pgprot_t flags);
15
16#ifndef CONFIG_PARAVIRT
17static inline void __set_fixmap(enum fixed_addresses idx,
18 unsigned long phys, pgprot_t flags)
19{
20 native_set_fixmap(idx, phys, flags);
21}
22#endif
23
14#define set_fixmap(idx, phys) \ 24#define set_fixmap(idx, phys) \
15 __set_fixmap(idx, phys, PAGE_KERNEL) 25 __set_fixmap(idx, phys, PAGE_KERNEL)
16 26