Alpha arch development list
 help / color / mirror / Atom feed
* [PATCH] Alpha: unbreak osf_setsysinfo(SSI_NVPAIRS, [SSIN_UACPROC, UAC_SIGBUS])
@ 2011-08-11 15:25 slyich
  2011-08-12  7:21 ` Michael Cree
  0 siblings, 1 reply; 5+ messages in thread
From: slyich @ 2011-08-11 15:25 UTC (permalink / raw)
  To: linux-alpha

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-12 23:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 15:25 [PATCH] Alpha: unbreak osf_setsysinfo(SSI_NVPAIRS, [SSIN_UACPROC, UAC_SIGBUS]) slyich
2011-08-12  7:21 ` Michael Cree
2011-08-12  9:59   ` Sergei Trofimovich
2011-08-12 21:51     ` Sergei Trofimovich
2011-08-12 23:34       ` Michael Cree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox