From: slyich@gmail.com
To: linux-alpha@vger.kernel.org
Subject: [PATCH] Alpha: unbreak osf_setsysinfo(SSI_NVPAIRS, [SSIN_UACPROC, UAC_SIGBUS])
Date: Thu, 11 Aug 2011 18:25:14 +0300 [thread overview]
Message-ID: <1313076314-6111-1-git-send-email-slyich@gmail.com> (raw)
From: Sergei Trofimovich <slyfox@gentoo.org>
Update 'UAC_SHIFT' to match 'ALPHA_UAC_SHIFT'.
I don't know why kernel maintains 2 copies of the same constant.
One (UAC_SHIFT) is used to shift bits in syscall definition, and
another is in trap handler (ALPHA_UAC_SHIFT).
Was broken by
> commit 745dd2405e281d96c0a449103bdf6a895048f28c
> Author: Michael Cree <mcree@orcon.net.nz>
> Date: Mon Nov 30 22:44:40 2009 -0500
>
> Alpha: Rearrange thread info flags fixing two regressions
>
> Both regressions fixed by (1) rearranging TIF_NOTIFY_RESUME flag to be
> in lower 8 bits of the thread info flags, and (2) making sure that
> ALPHA_UAC_SHIFT matches the rearrangement of the thread info flags.
>
> Signed-off-by: Michael Cree <mcree@orcon.net.nz>
> Cc: Richard Henderson <rth@twiddle.net>
> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
> Cc: David Howells <dhowells@redhat.com>,
> Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Cc: Michael Cree <mcree@orcon.net.nz>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: David Howells <dhowells@redhat.com>,
Cc: Matt Turner <mattst88@gmail.com>
---
arch/alpha/include/asm/sysinfo.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/alpha/include/asm/sysinfo.h b/arch/alpha/include/asm/sysinfo.h
index 086aba2..42b3edc 100644
--- a/arch/alpha/include/asm/sysinfo.h
+++ b/arch/alpha/include/asm/sysinfo.h
@@ -32,7 +32,7 @@
/* This is the shift that is applied to the UAC bits as stored in the
per-thread flags. See thread_info.h. */
-#define UAC_SHIFT 6
+#define UAC_SHIFT 10
#endif
--
1.7.3.4
next reply other threads:[~2011-08-11 15:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-11 15:25 slyich [this message]
2011-08-12 7:21 ` [PATCH] Alpha: unbreak osf_setsysinfo(SSI_NVPAIRS, [SSIN_UACPROC, UAC_SIGBUS]) Michael Cree
2011-08-12 9:59 ` Sergei Trofimovich
2011-08-12 21:51 ` Sergei Trofimovich
2011-08-12 23:34 ` Michael Cree
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=1313076314-6111-1-git-send-email-slyich@gmail.com \
--to=slyich@gmail.com \
--cc=linux-alpha@vger.kernel.org \
/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