mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "ye janboe" <janboe.ye@gmail.com>
To: "Russell King - ARM Linux" <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.arm.linux.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix signal return code when enable CONFIG_OABI_COMPAT
Date: Fri, 7 Mar 2008 19:09:22 +0800	[thread overview]
Message-ID: <af3ea28a0803070309g46c29385jdc611786db9925f8@mail.gmail.com> (raw)
In-Reply-To: <20080306153337.GM3283@flint.arm.linux.org.uk>

Russell

I resubmit my patch, please review it.
Thanks

commit 31644e57359644d3f376f293f1a45b7c181175b6
Author: janboe <janboe@gmail.com>
Date:   Thu Mar 6 23:00:23 2008 +0800

    fix signal return code when enable CONFIG_OABI_COMPAT
    Signed-off-by: Janboe Ye <janboe.ye@gmail.com>

diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index 54cdf1a..ef2f86a 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -26,8 +26,8 @@
 /*
  * For ARM syscalls, we encode the syscall number into the instruction.
  */
-#define SWI_SYS_SIGRETURN      (0xef000000|(__NR_sigreturn))
-#define SWI_SYS_RT_SIGRETURN   (0xef000000|(__NR_rt_sigreturn))
+#define SWI_SYS_SIGRETURN
(0xef000000|(__NR_sigreturn)|(__NR_OABI_SYSCALL_BASE))
+#define SWI_SYS_RT_SIGRETURN
(0xef000000|(__NR_rt_sigreturn)|(__NR_OABI_SYSCALL_BASE))

 /*
  * With EABI, the syscall number has to be loaded into r7.


2008/3/6, Russell King - ARM Linux <linux@arm.linux.org.uk>:
> On Thu, Mar 06, 2008 at 11:14:50PM +0800, ye janboe wrote:
>  > commit b4e8bde513a9a477c30c8769073ced7b59676d48
>  > Author: janboe <janboe.ye@gmail.com>
>  > Date:   Thu Mar 6 23:00:23 2008 +0800
>  >
>  >     fix signal return code when enable CONFIG_OABI_COMPAT.
>  >     because this will make kernel report this syscall obsolete.
>  >     Signed-off-by: Janboe Ye <janboe.ye@gmail.com>
>
>
> This is all horribly broken for OABI compat anyway (because __NR_* don't
>  contain the right prefix).  So this patch doesn't actually fix the real
>  problem.
>

  reply	other threads:[~2008-03-07 11:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 15:14 ye janboe
2008-03-06 15:33 ` Russell King - ARM Linux
2008-03-07 11:09   ` ye janboe [this message]
2008-03-17 18:39     ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af3ea28a0803070309g46c29385jdc611786db9925f8@mail.gmail.com \
    --to=janboe.ye@gmail.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome