Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a69236c2
Commit
a69236c2
authored
Mar 06, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Mar 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove __pte_offset
Patch from Dave Hansen <haveblue@us.ibm.com> ptes this time
parent
abe3455b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
32 additions
and
32 deletions
+32
-32
include/asm-i386/pgtable.h
include/asm-i386/pgtable.h
+5
-5
include/asm-ia64/pgtable.h
include/asm-ia64/pgtable.h
+2
-2
include/asm-m68k/sun3_pgtable.h
include/asm-m68k/sun3_pgtable.h
+3
-3
include/asm-parisc/pgtable.h
include/asm-parisc/pgtable.h
+2
-2
include/asm-ppc/pgtable.h
include/asm-ppc/pgtable.h
+4
-4
include/asm-s390/pgtable.h
include/asm-s390/pgtable.h
+2
-2
include/asm-s390x/pgtable.h
include/asm-s390x/pgtable.h
+2
-2
include/asm-sh/pgtable.h
include/asm-sh/pgtable.h
+2
-2
include/asm-sparc64/pgtable.h
include/asm-sparc64/pgtable.h
+4
-4
include/asm-um/pgtable.h
include/asm-um/pgtable.h
+4
-4
include/asm-x86_64/pgtable.h
include/asm-x86_64/pgtable.h
+2
-2
No files found.
include/asm-i386/pgtable.h
View file @
a69236c2
...
...
@@ -245,21 +245,21 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
(((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) \
#define
pte_index
(address) \
(((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset_kernel(dir, address) \
((pte_t *) pmd_page_kernel(*(dir)) +
__pte_offset
(address))
((pte_t *) pmd_page_kernel(*(dir)) +
pte_index
(address))
#if defined(CONFIG_HIGHPTE)
#define pte_offset_map(dir, address) \
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE0) +
__pte_offset
(address))
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE0) +
pte_index
(address))
#define pte_offset_map_nested(dir, address) \
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE1) +
__pte_offset
(address))
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE1) +
pte_index
(address))
#define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0)
#define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1)
#else
#define pte_offset_map(dir, address) \
((pte_t *)page_address(pmd_page(*(dir))) +
__pte_offset
(address))
((pte_t *)page_address(pmd_page(*(dir))) +
pte_index
(address))
#define pte_offset_map_nested(dir, address) pte_offset_map(dir, address)
#define pte_unmap(pte) do { } while (0)
#define pte_unmap_nested(pte) do { } while (0)
...
...
include/asm-ia64/pgtable.h
View file @
a69236c2
...
...
@@ -317,8 +317,8 @@ pgd_offset (struct mm_struct *mm, unsigned long address)
* Find an entry in the third-level page table. This looks more complicated than it
* should be because some platforms place page tables in high memory.
*/
#define
__pte_offset
(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset_kernel(dir,addr) ((pte_t *) pmd_page_kernel(*(dir)) +
__pte_offset
(addr))
#define
pte_index
(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset_kernel(dir,addr) ((pte_t *) pmd_page_kernel(*(dir)) +
pte_index
(addr))
#define pte_offset_map(dir,addr) pte_offset_kernel(dir, addr)
#define pte_offset_map_nested(dir,addr) pte_offset_map(dir, addr)
#define pte_unmap(pte) do { } while (0)
...
...
include/asm-m68k/sun3_pgtable.h
View file @
a69236c2
...
...
@@ -196,10 +196,10 @@ extern inline pmd_t *pmd_offset (pgd_t *pgd, unsigned long address)
}
/* Find an entry in the third-level pagetable. */
#define
__pte_offset
(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) +
__pte_offset
(address))
#define
pte_index
(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) +
pte_index
(address))
/* FIXME: should we bother with kmap() here? */
#define pte_offset_map(pmd, address) ((pte_t *)kmap(pmd_page(*pmd)) +
__pte_offset
(address))
#define pte_offset_map(pmd, address) ((pte_t *)kmap(pmd_page(*pmd)) +
pte_index
(address))
#define pte_offset_map_nested(pmd, address) pte_offset_map(pmd, address)
#define pte_unmap(pte) kunmap(pte)
#define pte_unmap_nested(pte) kunmap(pte)
...
...
include/asm-parisc/pgtable.h
View file @
a69236c2
...
...
@@ -329,9 +329,9 @@ extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
#endif
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define
pte_index
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define pte_offset_kernel(pmd, address) \
((pte_t *) pmd_page_kernel(*(pmd)) +
__pte_offset
(address))
((pte_t *) pmd_page_kernel(*(pmd)) +
pte_index
(address))
#define pte_offset_map(pmd, address) pte_offset_kernel(pmd, address)
#define pte_offset_map_nested(pmd, address) pte_offset_kernel(pmd, address)
#define pte_unmap(pte) do { } while (0)
...
...
include/asm-ppc/pgtable.h
View file @
a69236c2
...
...
@@ -494,14 +494,14 @@ static inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address)
}
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) \
#define
pte_index
(address) \
(((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset_kernel(dir, addr) \
((pte_t *) pmd_page_kernel(*(dir)) +
__pte_offset
(addr))
((pte_t *) pmd_page_kernel(*(dir)) +
pte_index
(addr))
#define pte_offset_map(dir, addr) \
((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE0) +
__pte_offset
(addr))
((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE0) +
pte_index
(addr))
#define pte_offset_map_nested(dir, addr) \
((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE1) +
__pte_offset
(addr))
((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE1) +
pte_index
(addr))
#define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0)
#define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1)
...
...
include/asm-s390/pgtable.h
View file @
a69236c2
...
...
@@ -467,9 +467,9 @@ extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address)
}
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define
pte_index
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define pte_offset_kernel(pmd, address) \
((pte_t *) pmd_page_kernel(*(pmd)) +
__pte_offset
(address))
((pte_t *) pmd_page_kernel(*(pmd)) +
pte_index
(address))
#define pte_offset_map(pmd, address) pte_offset_kernel(pmd, address)
#define pte_offset_map_nested(pmd, address) pte_offset_kernel(pmd, address)
#define pte_unmap(pte) do { } while (0)
...
...
include/asm-s390x/pgtable.h
View file @
a69236c2
...
...
@@ -493,9 +493,9 @@ extern inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot)
((pmd_t *) pgd_page_kernel(*(dir)) + pmd_index(addr))
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define
pte_index
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
#define pte_offset_kernel(pmd, address) \
((pte_t *) pmd_page_kernel(*(pmd)) +
__pte_offset
(address))
((pte_t *) pmd_page_kernel(*(pmd)) +
pte_index
(address))
#define pte_offset_map(pmd, address) pte_offset_kernel(pmd, address)
#define pte_offset_map_nested(pmd, address) pte_offset_kernel(pmd, address)
#define pte_unmap(pte) do { } while (0)
...
...
include/asm-sh/pgtable.h
View file @
a69236c2
...
...
@@ -280,10 +280,10 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) \
#define
pte_index
(address) \
((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset(dir, address) ((pte_t *) pmd_page(*(dir)) + \
__pte_offset
(address))
pte_index
(address))
extern
void
update_mmu_cache
(
struct
vm_area_struct
*
vma
,
unsigned
long
address
,
pte_t
pte
);
...
...
include/asm-sparc64/pgtable.h
View file @
a69236c2
...
...
@@ -273,11 +273,11 @@ static inline pte_t pte_modify(pte_t orig_pte, pgprot_t new_prot)
((address >> PMD_SHIFT) & (REAL_PTRS_PER_PMD-1)))
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(dir, address) ((pte_t *) __pmd_page(*(dir)) + \
#define
pte_index
(dir, address) ((pte_t *) __pmd_page(*(dir)) + \
((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)))
#define pte_offset_kernel
__pte_offset
#define pte_offset_map
__pte_offset
#define pte_offset_map_nested
__pte_offset
#define pte_offset_kernel
pte_index
#define pte_offset_map
pte_index
#define pte_offset_map_nested
pte_index
#define pte_unmap(pte) do { } while (0)
#define pte_unmap_nested(pte) do { } while (0)
...
...
include/asm-um/pgtable.h
View file @
a69236c2
...
...
@@ -375,13 +375,13 @@ static inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address)
}
/* Find an entry in the third-level page table.. */
#define
__pte_offset
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define
pte_index
(address) (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset_kernel(dir, address) \
((pte_t *) pmd_page_kernel(*(dir)) +
__pte_offset
(address))
((pte_t *) pmd_page_kernel(*(dir)) +
pte_index
(address))
#define pte_offset_map(dir, address) \
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE0) +
__pte_offset
(address))
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE0) +
pte_index
(address))
#define pte_offset_map_nested(dir, address) \
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE1) +
__pte_offset
(address))
((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE1) +
pte_index
(address))
#define pte_unmap(pte) kunmap_atomic((pte), KM_PTE0)
#define pte_unmap_nested(pte) kunmap_atomic((pte), KM_PTE1)
...
...
include/asm-x86_64/pgtable.h
View file @
a69236c2
...
...
@@ -353,10 +353,10 @@ extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
return
pte
;
}
#define
__pte_offset
(address) \
#define
pte_index
(address) \
((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
#define pte_offset_kernel(dir, address) ((pte_t *) pmd_page_kernel(*(dir)) + \
__pte_offset
(address))
pte_index
(address))
/* x86-64 always has all page tables mapped. */
#define pte_offset_map(dir,address) pte_offset_kernel(dir,address)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment