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
a0b1131e
Commit
a0b1131e
authored
Nov 30, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: provide readq()/writeq() on 32-bit too, cleanup
Impact: cleanup Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
2c5643b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
arch/x86/include/asm/io.h
arch/x86/include/asm/io.h
+7
-10
No files found.
arch/x86/include/asm/io.h
View file @
a0b1131e
...
...
@@ -55,21 +55,17 @@ build_mmio_write(__writeq, "q", unsigned long, "r", )
#define __raw_readq __readq
#define __raw_writeq writeq
/* Let people know we have them */
#define readq readq
#define writeq writeq
#else
/* CONFIG_X86_32 from here */
static
inline
__u64
readq
(
const
volatile
void
__iomem
*
addr
)
{
const
volatile
u32
__iomem
*
p
=
addr
;
u32
l
,
h
;
u32
l
ow
,
hig
h
;
l
=
readl
(
p
);
h
=
readl
(
p
+
1
);
l
ow
=
readl
(
p
);
h
igh
=
readl
(
p
+
1
);
return
l
+
((
u64
)
h
<<
32
);
return
l
ow
+
((
u64
)
hig
h
<<
32
);
}
static
inline
void
writeq
(
__u64
val
,
volatile
void
__iomem
*
addr
)
...
...
@@ -78,11 +74,12 @@ static inline void writeq(__u64 val, volatile void __iomem *addr)
writel
(
val
>>
32
,
addr
+
4
);
}
#endif
/* Let people know that we have them */
#define readq readq
#define writeq writeq
#endif
extern
int
iommu_bio_merge
;
#ifdef CONFIG_X86_32
...
...
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