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
8a8ae00f
Commit
8a8ae00f
authored
Sep 13, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add kmap_atomic_to_page.
parent
007e4bb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
include/asm-sparc/highmem.h
include/asm-sparc/highmem.h
+13
-0
No files found.
include/asm-sparc/highmem.h
View file @
8a8ae00f
...
...
@@ -148,6 +148,19 @@ static inline void kunmap_atomic(void *kvaddr, enum km_type type)
dec_preempt_count
();
}
static
inline
struct
page
*
kmap_atomic_to_page
(
void
*
ptr
)
{
unsigned
long
idx
,
vaddr
=
(
unsigned
long
)
ptr
;
pte_t
*
pte
;
if
(
vaddr
<
FIX_KMAP_BEGIN
)
return
virt_to_page
(
ptr
);
idx
=
((
vaddr
-
FIX_KMAP_BEGIN
)
>>
PAGE_SHIFT
);
pte
=
kmap_pte
+
idx
;
return
pte_page
(
*
pte
);
}
#endif
/* __KERNEL__ */
#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