diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/x86/include/asm/fixmap.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'arch/x86/include/asm/fixmap.h')
-rw-r--r-- | arch/x86/include/asm/fixmap.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h index d07b44f7d1dc..4729b2b63117 100644 --- a/arch/x86/include/asm/fixmap.h +++ b/arch/x86/include/asm/fixmap.h | |||
@@ -116,7 +116,11 @@ enum fixed_addresses { | |||
116 | #endif | 116 | #endif |
117 | FIX_TEXT_POKE1, /* reserve 2 pages for text_poke() */ | 117 | FIX_TEXT_POKE1, /* reserve 2 pages for text_poke() */ |
118 | FIX_TEXT_POKE0, /* first page is last, because allocation is backward */ | 118 | FIX_TEXT_POKE0, /* first page is last, because allocation is backward */ |
119 | #ifdef CONFIG_X86_MRST | ||
120 | FIX_LNW_VRTC, | ||
121 | #endif | ||
119 | __end_of_permanent_fixed_addresses, | 122 | __end_of_permanent_fixed_addresses, |
123 | |||
120 | /* | 124 | /* |
121 | * 256 temporary boot-time mappings, used by early_ioremap(), | 125 | * 256 temporary boot-time mappings, used by early_ioremap(), |
122 | * before ioremap() is functional. | 126 | * before ioremap() is functional. |
@@ -214,5 +218,20 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr) | |||
214 | BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START); | 218 | BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START); |
215 | return __virt_to_fix(vaddr); | 219 | return __virt_to_fix(vaddr); |
216 | } | 220 | } |
221 | |||
222 | /* Return an pointer with offset calculated */ | ||
223 | static __always_inline unsigned long | ||
224 | __set_fixmap_offset(enum fixed_addresses idx, phys_addr_t phys, pgprot_t flags) | ||
225 | { | ||
226 | __set_fixmap(idx, phys, flags); | ||
227 | return fix_to_virt(idx) + (phys & (PAGE_SIZE - 1)); | ||
228 | } | ||
229 | |||
230 | #define set_fixmap_offset(idx, phys) \ | ||
231 | __set_fixmap_offset(idx, phys, PAGE_KERNEL) | ||
232 | |||
233 | #define set_fixmap_offset_nocache(idx, phys) \ | ||
234 | __set_fixmap_offset(idx, phys, PAGE_KERNEL_NOCACHE) | ||
235 | |||
217 | #endif /* !__ASSEMBLY__ */ | 236 | #endif /* !__ASSEMBLY__ */ |
218 | #endif /* _ASM_X86_FIXMAP_H */ | 237 | #endif /* _ASM_X86_FIXMAP_H */ |