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
26de313f
Commit
26de313f
authored
Mar 26, 2003
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Pass prev task_struct through __switch_to
parent
c2133c96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-armv.S
+4
-4
arch/arm/kernel/entry-common.S
arch/arm/kernel/entry-common.S
+0
-1
include/asm-arm/system.h
include/asm-arm/system.h
+6
-5
No files found.
arch/arm/kernel/entry-armv.S
View file @
26de313f
...
...
@@ -997,11 +997,11 @@ ENTRY(fp_enter)
*
previous
and
next
are
guaranteed
not
to
be
the
same
.
*/
ENTRY
(
__switch_to
)
add
ip
,
r
0
,
#
TI_CPU_SAVE
ldr
r
2
,
[
r1
,
#
TI_CPU_DOMAIN
]!
add
ip
,
r
1
,
#
TI_CPU_SAVE
ldr
r
3
,
[
r2
,
#
TI_CPU_DOMAIN
]!
stmia
ip
,
{
r4
-
sl
,
fp
,
sp
,
lr
}
@
Store
most
regs
on
stack
mcr
p15
,
0
,
r
2
,
c3
,
c
0
@
Set
domain
register
ldmib
r
1
,
{
r4
-
sl
,
fp
,
sp
,
pc
}
@
Load
all
regs
saved
previously
mcr
p15
,
0
,
r
3
,
c3
,
c0
,
0
@
Set
domain
register
ldmib
r
2
,
{
r4
-
sl
,
fp
,
sp
,
pc
}
@
Load
all
regs
saved
previously
__INIT
/*
...
...
arch/arm/kernel/entry-common.S
View file @
26de313f
...
...
@@ -75,7 +75,6 @@ no_work_pending:
*
This
is
how
we
return
from
a
fork
.
*/
ENTRY
(
ret_from_fork
)
ldr
r0
,
[
r0
,
#
TI_TASK
]
bl
schedule_tail
get_thread_info
tsk
ldr
r1
,
[
tsk
,
#
TI_FLAGS
]
@
check
for
syscall
tracing
...
...
include/asm-arm/system.h
View file @
26de313f
...
...
@@ -65,12 +65,13 @@ extern int cpu_architecture(void);
* The `mb' is to tell GCC not to cache `current' across this call.
*/
struct
thread_info
;
extern
struct
thread_info
*
__switch_to
(
struct
thread_info
*
,
struct
thread_info
*
);
struct
task_struct
;
extern
struct
task_struct
*
__switch_to
(
struct
task_struct
*
,
struct
thread_info
*
,
struct
thread_info
*
);
#define switch_to(prev,next,last) \
do {
\
__switch_to(
prev->thread_info,next->thread_info); \
mb(); \
#define switch_to(prev,next,last)
\
do {
\
last = __switch_to(prev,
prev->thread_info,next->thread_info); \
mb();
\
} while (0)
#ifdef CONFIG_SMP
...
...
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