Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8633bebc
Commit
8633bebc
authored
Feb 22, 2010
by
Michal Simek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
microblaze: Save current task directly
Signed-off-by:
Michal Simek
<
monstr@monstr.eu
>
parent
b1d70c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
arch/microblaze/kernel/entry.S
arch/microblaze/kernel/entry.S
+4
-8
No files found.
arch/microblaze/kernel/entry.S
View file @
8633bebc
...
...
@@ -425,8 +425,7 @@ C_ENTRY(ret_from_trap):
lwi
r4
,
r1
,
PTO
+
PT_R4
;
swi
r0
,
r0
,
PER_CPU
(
KM
)
; /* Now officially in user state. */
add
r11
,
r0
,
CURRENT_TASK
; /* Get current task ptr into r11 */
swi
r11
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
; /* save current */
swi
CURRENT_TASK
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
; /* save current */
VM_OFF
;
tophys
(
r1
,
r1
)
;
RESTORE_REGS
;
...
...
@@ -700,8 +699,7 @@ C_ENTRY(ret_from_exc):
/*
Finally
,
return
to
user
state
.
*/
1
:
swi
r0
,
r0
,
PER_CPU
(
KM
)
; /* Now officially in user state. */
add
r11
,
r0
,
CURRENT_TASK
; /* Get current task ptr into r11 */
swi
r11
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
; /* save current */
swi
CURRENT_TASK
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
; /* save current */
VM_OFF
;
tophys
(
r1
,
r1
)
;
...
...
@@ -828,8 +826,7 @@ no_intr_resched:
/
*
Disable
interrupts
,
we
are
now
committed
to
the
state
restore
*/
disable_irq
swi
r0
,
r0
,
PER_CPU
(
KM
)
; /* MS: Now officially in user state. */
add
r11
,
r0
,
CURRENT_TASK
;
swi
r11
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
;
swi
CURRENT_TASK
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
;
VM_OFF
;
tophys
(
r1
,
r1
)
;
lwi
r3
,
r1
,
PTO
+
PT_R3
; /* MS: restore saved r3, r4 registers */
...
...
@@ -979,8 +976,7 @@ dbtrap_call: rtbd r11, 0;
/*
Finally
,
return
to
user
state
.
*/
1
:
swi
r0
,
r0
,
PER_CPU
(
KM
)
; /* Now officially in user state. */
add
r11
,
r0
,
CURRENT_TASK
; /* Get current task ptr into r11 */
swi
r11
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
; /* save current */
swi
CURRENT_TASK
,
r0
,
PER_CPU
(
CURRENT_SAVE
)
; /* save current */
VM_OFF
;
tophys
(
r1
,
r1
)
;
...
...
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