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
cb56837e
Commit
cb56837e
authored
Oct 31, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] SMTC: Fix crash if # of TC's > # of VPE's after pt_regs irq cleanup.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
242954b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
arch/mips/kernel/entry.S
arch/mips/kernel/entry.S
+3
-0
arch/mips/kernel/smtc-asm.S
arch/mips/kernel/smtc-asm.S
+6
-1
No files found.
arch/mips/kernel/entry.S
View file @
cb56837e
...
...
@@ -83,7 +83,10 @@ FEXPORT(syscall_exit)
FEXPORT
(
restore_all
)
#
restore
full
frame
#ifdef CONFIG_MIPS_MT_SMTC
/*
Detect
and
execute
deferred
IPI
"interrupts"
*/
LONG_L
s0
,
TI_REGS
(
$
28
)
LONG_S
sp
,
TI_REGS
(
$
28
)
jal
deferred_smtc_ipi
LONG_S
s0
,
TI_REGS
(
$
28
)
/*
Re
-
arm
any
temporarily
masked
interrupts
not
explicitly
"acked"
*/
mfc0
v0
,
CP0_TCSTATUS
ori
v1
,
v0
,
TCSTATUS_IXMT
...
...
arch/mips/kernel/smtc-asm.S
View file @
cb56837e
...
...
@@ -101,7 +101,9 @@ FEXPORT(__smtc_ipi_vector)
lw
t0
,
PT_PADSLOT5
(
sp
)
/
*
Argument
from
sender
passed
in
stack
pad
slot
4
*/
lw
a0
,
PT_PADSLOT4
(
sp
)
PTR_LA
ra
,
_ret_from_irq
LONG_L
s0
,
TI_REGS
(
$
28
)
LONG_S
sp
,
TI_REGS
(
$
28
)
PTR_LA
ra
,
ret_from_irq
jr
t0
/*
...
...
@@ -119,7 +121,10 @@ LEAF(self_ipi)
subu
t1
,
sp
,
PT_SIZE
sw
ra
,
PT_EPC
(
t1
)
sw
a0
,
PT_PADSLOT4
(
t1
)
LONG_L
s0
,
TI_REGS
(
$
28
)
LONG_S
sp
,
TI_REGS
(
$
28
)
la
t2
,
ipi_decode
LONG_S
s0
,
TI_REGS
(
$
28
)
sw
t2
,
PT_PADSLOT5
(
t1
)
/
*
Save
pre
-
disable
value
of
TCStatus
*/
sw
t0
,
PT_TCSTATUS
(
t1
)
...
...
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