Commit 4a53ec1c authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Helge Deller

parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions

As part of the effort to reduce the code duplication between _THIS_IP_
and current_text_addr(), let's consolidate callers of
current_text_addr() to use _THIS_IP_.
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 75ebedf1
...@@ -439,8 +439,8 @@ unsigned long return_address(unsigned int level) ...@@ -439,8 +439,8 @@ unsigned long return_address(unsigned int level)
/* initialize unwind info */ /* initialize unwind info */
asm volatile ("copy %%r30, %0" : "=r"(sp)); asm volatile ("copy %%r30, %0" : "=r"(sp));
memset(&r, 0, sizeof(struct pt_regs)); memset(&r, 0, sizeof(struct pt_regs));
r.iaoq[0] = (unsigned long) current_text_addr(); r.iaoq[0] = _THIS_IP_;
r.gr[2] = (unsigned long) __builtin_return_address(0); r.gr[2] = _RET_IP_;
r.gr[30] = sp; r.gr[30] = sp;
unwind_frame_init(&info, current, &r); unwind_frame_init(&info, current, &r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment