Skip to content

Commit

Permalink
x86: signal_32.c: introduce macro ia32_setup_frame and ia32_setup_rt_…
Browse files Browse the repository at this point in the history
…frame

Make 32-bit setup_rt_frame() look like 64-bit version for unification.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Sep 25, 2008
1 parent 455edbc commit 4694d23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/kernel/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,8 @@ static int signr_convert(int sig)
}

#define is_ia32 1
#define ia32_setup_frame __setup_frame
#define ia32_setup_rt_frame __setup_rt_frame

static int
setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
Expand All @@ -503,9 +505,9 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up the stack frame */
if (is_ia32) {
if (ka->sa.sa_flags & SA_SIGINFO)
ret = __setup_rt_frame(usig, ka, info, set, regs);
ret = ia32_setup_rt_frame(usig, ka, info, set, regs);
else
ret = __setup_frame(usig, ka, set, regs);
ret = ia32_setup_frame(usig, ka, set, regs);
} else
ret = __setup_rt_frame(sig, ka, info, set, regs);

Expand Down

0 comments on commit 4694d23

Please sign in to comment.