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
437ac6c0
Commit
437ac6c0
authored
Dec 01, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Kill some multiline string literals.
parent
e3baeb15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
39 deletions
+39
-39
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+39
-39
No files found.
arch/sparc64/kernel/smp.c
View file @
437ac6c0
...
@@ -145,28 +145,28 @@ void __init smp_callin(void)
...
@@ -145,28 +145,28 @@ void __init smp_callin(void)
* purposes. Also workaround BB_ERRATA_1 by doing a dummy
* purposes. Also workaround BB_ERRATA_1 by doing a dummy
* read back of %tick after writing it.
* read back of %tick after writing it.
*/
*/
__asm__
__volatile__
(
"
__asm__
__volatile__
(
sethi %%hi(0x80000000), %%g1
"sethi %%hi(0x80000000), %%g1
\n\t
"
ba,pt %%xcc, 1f
"ba,pt %%xcc, 1f
\n\t
"
sllx %%g1, 32, %%g1
" sllx %%g1, 32, %%g1
\n\t
"
.align 64
".align 64
\n
"
1: rd %%tick, %%g2
"1: rd %%tick, %%g2
\n\t
"
add %%g2, 6, %%g2
"add %%g2, 6, %%g2
\n\t
"
andn %%g2, %%g1, %%g2
"andn %%g2, %%g1, %%g2
\n\t
"
wrpr %%g2, 0, %%tick
"wrpr %%g2, 0, %%tick
\n\t
"
rdpr %%tick, %%g0"
"
rdpr %%tick, %%g0"
:
/* no outputs */
:
/* no outputs */
:
/* no inputs */
:
/* no inputs */
:
"g1"
,
"g2"
);
:
"g1"
,
"g2"
);
if
(
SPARC64_USE_STICK
)
{
if
(
SPARC64_USE_STICK
)
{
/* Let the user get at STICK too. */
/* Let the user get at STICK too. */
__asm__
__volatile__
(
"
__asm__
__volatile__
(
sethi %%hi(0x80000000), %%g1
"sethi %%hi(0x80000000), %%g1
\n\t
"
sllx %%g1, 32, %%g1
"sllx %%g1, 32, %%g1
\n\t
"
rd %%asr24, %%g2
"rd %%asr24, %%g2
\n\t
"
andn %%g2, %%g1, %%g2
"andn %%g2, %%g1, %%g2
\n\t
"
wr %%g2, 0, %%asr24"
"
wr %%g2, 0, %%asr24"
:
/* no outputs */
:
/* no outputs */
:
/* no inputs */
:
/* no inputs */
:
"g1"
,
"g2"
);
:
"g1"
,
"g2"
);
...
@@ -283,18 +283,18 @@ static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, u
...
@@ -283,18 +283,18 @@ static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, u
* ADDR 0x20) for the dummy read. -DaveM
* ADDR 0x20) for the dummy read. -DaveM
*/
*/
tmp
=
0x40
;
tmp
=
0x40
;
__asm__
__volatile__
(
"
__asm__
__volatile__
(
wrpr %1, %2, %%pstate
"wrpr %1, %2, %%pstate
\n\t
"
stxa %4, [%0] %3
"stxa %4, [%0] %3
\n\t
"
stxa %5, [%0+%8] %3
"stxa %5, [%0+%8] %3
\n\t
"
add %0, %8, %0
"add %0, %8, %0
\n\t
"
stxa %6, [%0+%8] %3
"stxa %6, [%0+%8] %3
\n\t
"
membar #Sync
"membar #Sync
\n\t
"
stxa %%g0, [%7] %3
"stxa %%g0, [%7] %3
\n\t
"
membar #Sync
"membar #Sync
\n\t
"
mov 0x20, %%g1
"mov 0x20, %%g1
\n\t
"
ldxa [%%g1] 0x7f, %%g0
"ldxa [%%g1] 0x7f, %%g0
\n\t
"
membar #Sync"
"
membar #Sync"
:
"=r"
(
tmp
)
:
"=r"
(
tmp
)
:
"r"
(
pstate
),
"i"
(
PSTATE_IE
),
"i"
(
ASI_INTR_W
),
:
"r"
(
pstate
),
"i"
(
PSTATE_IE
),
"i"
(
ASI_INTR_W
),
"r"
(
data0
),
"r"
(
data1
),
"r"
(
data2
),
"r"
(
target
),
"r"
(
data0
),
"r"
(
data1
),
"r"
(
data2
),
"r"
(
target
),
...
@@ -1054,21 +1054,21 @@ static void __init smp_setup_percpu_timer(void)
...
@@ -1054,21 +1054,21 @@ static void __init smp_setup_percpu_timer(void)
* read back from %tick_cmpr right after writing to it. -DaveM
* read back from %tick_cmpr right after writing to it. -DaveM
*/
*/
if
(
!
SPARC64_USE_STICK
)
{
if
(
!
SPARC64_USE_STICK
)
{
__asm__
__volatile__
(
"
__asm__
__volatile__
(
rd %%tick, %%g1
"rd %%tick, %%g1
\n\t
"
ba,pt %%xcc, 1f
"ba,pt %%xcc, 1f
\n\t
"
add %%g1, %0, %%g1
" add %%g1, %0, %%g1
\n\t
"
.align 64
".align 64
\n
"
1: wr %%g1, 0x0, %%tick_cmpr
"1: wr %%g1, 0x0, %%tick_cmpr
\n\t
"
rd %%tick_cmpr, %%g0"
"
rd %%tick_cmpr, %%g0"
:
/* no outputs */
:
/* no outputs */
:
"r"
(
current_tick_offset
)
:
"r"
(
current_tick_offset
)
:
"g1"
);
:
"g1"
);
}
else
{
}
else
{
__asm__
__volatile__
(
"
__asm__
__volatile__
(
rd %%asr24, %%g1
"rd %%asr24, %%g1
\n\t
"
add %%g1, %0, %%g1
"add %%g1, %0, %%g1
\n\t
"
wr %%g1, 0x0, %%asr25"
"
wr %%g1, 0x0, %%asr25"
:
/* no outputs */
:
/* no outputs */
:
"r"
(
current_tick_offset
)
:
"r"
(
current_tick_offset
)
:
"g1"
);
:
"g1"
);
...
...
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