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
nexedi
linux
Commits
a76d1bae
Commit
a76d1bae
authored
Mar 11, 2003
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Replace 2 inline functions with their normal macro equivalents
parent
2f52183c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
arch/ppc/kernel/ppc-stub.c
arch/ppc/kernel/ppc-stub.c
+4
-16
No files found.
arch/ppc/kernel/ppc-stub.c
View file @
a76d1bae
...
...
@@ -420,18 +420,6 @@ static void kgdb_flush_cache_all(void)
flush_instruction_cache
();
}
static
inline
int
get_msr
(
void
)
{
int
msr
;
asm
volatile
(
"mfmsr %0"
:
"=r"
(
msr
)
:
);
return
msr
;
}
static
inline
void
set_msr
(
int
msr
)
{
asm
volatile
(
"mtmsr %0"
:
:
"r"
(
msr
));
}
/* Set up exception handlers for tracing and breakpoints
* [could be called kgdb_init()]
*/
...
...
@@ -598,8 +586,8 @@ handle_exception (struct pt_regs *regs)
kgdb_interruptible
(
0
);
lock_kernel
();
msr
=
get_
msr
();
set_
msr
(
msr
&
~
MSR_EE
);
/* disable interrupts */
msr
=
mf
msr
();
mt
msr
(
msr
&
~
MSR_EE
);
/* disable interrupts */
if
(
regs
->
nip
==
(
unsigned
long
)
breakinst
)
{
/* Skip over breakpoint trap insn */
...
...
@@ -786,7 +774,7 @@ handle_exception (struct pt_regs *regs)
strcpy
(
remcomOutBuffer
,
"OK"
);
putpacket
(
remcomOutBuffer
);
#endif
set_
msr
(
msr
);
mt
msr
(
msr
);
kgdb_interruptible
(
1
);
unlock_kernel
();
...
...
@@ -802,7 +790,7 @@ handle_exception (struct pt_regs *regs)
#if defined(CONFIG_40x)
regs
->
msr
|=
MSR_DE
;
regs
->
dbcr0
|=
(
DBCR0_IDM
|
DBCR0_IC
);
set_
msr
(
msr
);
mt
msr
(
msr
);
#else
regs
->
msr
|=
MSR_SE
;
#endif
...
...
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