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
Kirill Smelkov
linux
Commits
680272da
Commit
680272da
authored
Sep 17, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: define kmap_atomic_to_page
parent
6917068e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
include/asm-ppc/highmem.h
include/asm-ppc/highmem.h
+11
-0
No files found.
include/asm-ppc/highmem.h
View file @
680272da
...
@@ -128,6 +128,17 @@ static inline void kunmap_atomic(void *kvaddr, enum km_type type)
...
@@ -128,6 +128,17 @@ static inline void kunmap_atomic(void *kvaddr, enum km_type type)
dec_preempt_count
();
dec_preempt_count
();
}
}
static
inline
struct
page
*
kmap_atomic_to_page
(
void
*
ptr
)
{
unsigned
long
idx
,
vaddr
=
(
unsigned
long
)
ptr
;
if
(
vaddr
<
KMAP_FIX_BEGIN
)
return
virt_to_page
(
ptr
);
idx
=
(
vaddr
-
KMAP_FIX_BEGIN
)
>>
PAGE_SHIFT
;
return
pte_page
(
kmap_pte
[
idx
]);
}
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
#endif
/* _ASM_HIGHMEM_H */
#endif
/* _ASM_HIGHMEM_H */
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