|
@@ -17,6 +17,7 @@
|
|
|
#ifndef __ASSEMBLY__
|
|
|
#include <linux/kernel.h>
|
|
|
#include <asm/page.h>
|
|
|
+#include <asm/pgtable.h>
|
|
|
#ifdef CONFIG_HIGHMEM
|
|
|
#include <linux/threads.h>
|
|
|
#include <asm/kmap_types.h>
|
|
@@ -62,9 +63,6 @@ enum fixed_addresses {
|
|
|
__end_of_fixed_addresses
|
|
|
};
|
|
|
|
|
|
-extern void __set_fixmap (enum fixed_addresses idx,
|
|
|
- phys_addr_t phys, pgprot_t flags);
|
|
|
-
|
|
|
#define __FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
|
|
|
#define FIXADDR_START (FIXADDR_TOP - __FIXADDR_SIZE)
|
|
|
|
|
@@ -72,5 +70,11 @@ extern void __set_fixmap (enum fixed_addresses idx,
|
|
|
|
|
|
#include <asm-generic/fixmap.h>
|
|
|
|
|
|
+static inline void __set_fixmap(enum fixed_addresses idx,
|
|
|
+ phys_addr_t phys, pgprot_t flags)
|
|
|
+{
|
|
|
+ map_kernel_page(fix_to_virt(idx), phys, pgprot_val(flags));
|
|
|
+}
|
|
|
+
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
#endif
|