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
f0265ce3
Commit
f0265ce3
authored
May 17, 2003
by
Pete Zaitcev
Committed by
David S. Miller
May 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Keiths SMP patch #1
parent
d8475074
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
arch/sparc/kernel/entry.S
arch/sparc/kernel/entry.S
+6
-5
arch/sparc/kernel/smp.c
arch/sparc/kernel/smp.c
+10
-0
include/asm-sparc/smp.h
include/asm-sparc/smp.h
+0
-3
No files found.
arch/sparc/kernel/entry.S
View file @
f0265ce3
...
...
@@ -359,11 +359,11 @@ maybe_smp4m_msg:
andcc
%
o1
,
%
o4
,
%
g0
be
,
a
smp4m_ticker
cmp
%
l7
,
14
cmp
%
l7
,
13
sethi
%
hi
(
0x40000000
),
%
o2
add
%
o5
,
%
o3
,
%
o5
bne
,
a
1
f
sethi
%
hi
(
0x40000000
),
%
o2
sethi
%
hi
(
0x20000000
),
%
o2
andcc
%
o1
,
%
o2
,
%
g0
be
,
a
1
f
sethi
%
hi
(
0x20000000
),
%
o2
1
:
st
%
o2
,
[%
o5
+
0x4
]
WRITE_PAUSE
...
...
@@ -374,7 +374,8 @@ maybe_smp4m_msg:
WRITE_PAUSE
wr
%
l4
,
PSR_ET
,
%
psr
WRITE_PAUSE
cmp
%
l7
,
13
srl
%
o2
,
(
16
+
14
),
%
o2
tst
%
o2
bne
2
f
nop
call
C_LABEL
(
smp_reschedule_irq
)
...
...
arch/sparc/kernel/smp.c
View file @
f0265ce3
...
...
@@ -133,6 +133,16 @@ void __init smp_boot_cpus(void)
smp4d_boot_cpus
();
}
void
smp_send_reschedule
(
int
cpu
)
{
smp_message_pass
(
cpu
,
MSG_RESCHEDULE
,
0
,
0
);
}
void
smp_send_stop
(
void
)
{
smp_message_pass
(
MSG_ALL_BUT_SELF
,
MSG_STOP_CPU
,
0
,
0
);
}
void
smp_flush_cache_all
(
void
)
{
xc0
((
smpfunc_t
)
BTFIXUP_CALL
(
local_flush_cache_all
));
...
...
include/asm-sparc/smp.h
View file @
f0265ce3
...
...
@@ -169,9 +169,6 @@ extern __inline__ int hard_smp_processor_id(void)
#endif
#define smp_processor_id() hard_smp_processor_id()
/* XXX We really need to implement this now. -DaveM */
extern
__inline__
void
smp_send_reschedule
(
int
cpu
)
{
}
extern
__inline__
void
smp_send_stop
(
void
)
{
}
#endif
/* !(__ASSEMBLY__) */
...
...
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