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
b188ffe8
Commit
b188ffe8
authored
Dec 28, 2004
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build with SMP disabled and preemption enabled.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
0964ce24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
arch/mips/kernel/gdb-stub.c
arch/mips/kernel/gdb-stub.c
+3
-0
No files found.
arch/mips/kernel/gdb-stub.c
View file @
b188ffe8
...
...
@@ -637,15 +637,18 @@ static struct gdb_bp_save async_bp;
* and only one can be active at a time.
*/
extern
spinlock_t
smp_call_lock
;
void
set_async_breakpoint
(
unsigned
long
*
epc
)
{
/* skip breaking into userland */
if
((
*
epc
&
0x80000000
)
==
0
)
return
;
#ifdef CONFIG_SMP
/* avoid deadlock if someone is make IPC */
if
(
spin_is_locked
(
&
smp_call_lock
))
return
;
#endif
async_bp
.
addr
=
*
epc
;
*
epc
=
(
unsigned
long
)
async_breakpoint
;
...
...
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