Subversion Repositories shark

Rev

Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
#ifndef _I386_RMAP_H
2
#define _I386_RMAP_H
3
 
4
/* nothing to see, move along */
5
#include <asm-generic/rmap.h>
6
 
7
#ifdef CONFIG_HIGHPTE
8
static inline pte_t *rmap_ptep_map(pte_addr_t pte_paddr)
9
{
10
        unsigned long pfn = (unsigned long)(pte_paddr >> PAGE_SHIFT);
11
        unsigned long off = ((unsigned long)pte_paddr) & ~PAGE_MASK;
12
        return (pte_t *)((char *)kmap_atomic(pfn_to_page(pfn), KM_PTE2) + off);
13
}
14
 
15
static inline void rmap_ptep_unmap(pte_t *pte)
16
{
17
        kunmap_atomic(pte, KM_PTE2);
18
}
19
#endif
20
 
21
#endif