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
c790b41b
Commit
c790b41b
authored
Nov 30, 2013
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: use kernel_text_address() in unwind functions
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
6c3215cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
arch/parisc/kernel/unwind.c
arch/parisc/kernel/unwind.c
+3
-6
No files found.
arch/parisc/kernel/unwind.c
View file @
c790b41b
...
...
@@ -168,7 +168,7 @@ void unwind_table_remove(struct unwind_table *table)
}
/* Called from setup_arch to import the kernel unwind info */
int
unwind_init
(
void
)
int
__init
unwind_init
(
void
)
{
long
start
,
stop
;
register
unsigned
long
gp
__asm__
(
"r27"
);
...
...
@@ -233,7 +233,6 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
e
=
find_unwind_entry
(
info
->
ip
);
if
(
e
==
NULL
)
{
unsigned
long
sp
;
extern
char
_stext
[],
_etext
[];
dbg
(
"Cannot find unwind entry for 0x%lx; forced unwinding
\n
"
,
info
->
ip
);
...
...
@@ -281,8 +280,7 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
break
;
info
->
prev_ip
=
tmp
;
sp
=
info
->
prev_sp
;
}
while
(
info
->
prev_ip
<
(
unsigned
long
)
_stext
||
info
->
prev_ip
>
(
unsigned
long
)
_etext
);
}
while
(
!
kernel_text_address
(
info
->
prev_ip
));
info
->
rp
=
0
;
...
...
@@ -435,9 +433,8 @@ unsigned long return_address(unsigned int level)
do
{
if
(
unwind_once
(
&
info
)
<
0
||
info
.
ip
==
0
)
return
0
;
if
(
!
__kernel_text_address
(
info
.
ip
))
{
if
(
!
kernel_text_address
(
info
.
ip
))
return
0
;
}
}
while
(
info
.
ip
&&
level
--
);
return
info
.
ip
;
...
...
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