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
e2f6f58d
Commit
e2f6f58d
authored
Mar 18, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: In __hbird_write_compare, write high then low part.
parent
1a37395a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+4
-4
No files found.
arch/sparc64/kernel/time.c
View file @
e2f6f58d
...
@@ -329,11 +329,11 @@ static void __hbird_write_compare(unsigned long val)
...
@@ -329,11 +329,11 @@ static void __hbird_write_compare(unsigned long val)
{
{
unsigned
long
low
=
(
val
&
0xffffffffUL
);
unsigned
long
low
=
(
val
&
0xffffffffUL
);
unsigned
long
high
=
(
val
>>
32UL
);
unsigned
long
high
=
(
val
>>
32UL
);
unsigned
long
addr
=
HBIRD_STICKCMP_ADDR
;
unsigned
long
addr
=
HBIRD_STICKCMP_ADDR
+
0x8UL
;
__asm__
__volatile__
(
"stxa %
2
, [%0] %4
\n\t
"
__asm__
__volatile__
(
"stxa %
3
, [%0] %4
\n\t
"
"
add
%0, 0x8, %0
\n\t
"
"
sub
%0, 0x8, %0
\n\t
"
"stxa %
3
, [%0] %4"
"stxa %
2
, [%0] %4"
:
"=&r"
(
addr
)
:
"=&r"
(
addr
)
:
"0"
(
addr
),
"r"
(
low
),
"r"
(
high
),
:
"0"
(
addr
),
"r"
(
low
),
"r"
(
high
),
"i"
(
ASI_PHYS_BYPASS_EC_E
));
"i"
(
ASI_PHYS_BYPASS_EC_E
));
...
...
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