Commit 693e8bb1 authored by Jeff Dike's avatar Jeff Dike

Missed a change to fixmap.h in the highmem update.

parent 2985e5b9
...@@ -61,6 +61,7 @@ extern unsigned long get_kmem_end(void); ...@@ -61,6 +61,7 @@ extern unsigned long get_kmem_end(void);
#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT)) #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
extern void __this_fixmap_does_not_exist(void); extern void __this_fixmap_does_not_exist(void);
...@@ -86,4 +87,10 @@ static inline unsigned long fix_to_virt(const unsigned int idx) ...@@ -86,4 +87,10 @@ static inline unsigned long fix_to_virt(const unsigned int idx)
return __fix_to_virt(idx); return __fix_to_virt(idx);
} }
static inline unsigned long virt_to_fix(const unsigned long vaddr)
{
BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START);
return __virt_to_fix(vaddr);
}
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment