Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Arkadiy Chapkis - Arc <achapkis@shells.dls.net>
To: axp-list@redhat.com
Subject: Re: 2.6.0-test9 partial success
Date: Mon, 27 Oct 2003 14:58:42 -0500	[thread overview]
Message-ID: <00A28023.46F4EBF6.259@shells.dls.net> (raw)

  Ivan,

  Thank you very much, it worked. I'm still out of sound, es18xx module 
didn't think I have this card, but I loaded it with isapnp disabled. Still,
when I try to send an .mp3 file to /dev/snd/pcmC0D0c I get 
cat: write error: Invalid argument
and it I try /dev/snd/pcmC0D0p I get
cat: write error: File descriptor in bad state

  Now I think I am doing something wrong.

>
>Exactly.
>
>>   My question is: should I file kernel bug report, or is it something I do
>> wrong?
>
>I think there is a problem with incorrect sign extension in calculation
>of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
>for me, though I'm not sure it's right way to fix that - I've sent this
>to rth 3 or 4 times, but it wasn't applied...
>
>Ivan.
>
>--- 2.6/arch/alpha/kernel/module.c	Wed May 28 01:05:20 2003
>+++ linux/arch/alpha/kernel/module.c	Mon Aug 11 23:23:02 2003
>@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
> 			*(u64 *)location = value;
> 			break;
> 		case R_ALPHA_GPRELHIGH:
>-			value = (value - gp + 0x8000) >> 16;
>+			value = (long)(value - gp + 0x8000) >> 16;
> 			if ((short) value != value)
> 				goto reloc_overflow;
> 			*(u16 *)location = value;
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



             reply	other threads:[~2003-10-27 20:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27 19:58 Arkadiy Chapkis - Arc [this message]
2003-10-27 20:56 ` 2.6.0-test9 partial success Jay Estabrook
  -- strict thread matches above, loose matches on Subject: below --
2003-10-28  5:09 Arkadiy Chapkis - Arc
2003-10-28 19:27 ` Jay Estabrook
2003-10-27 20:36 Arkadiy Chapkis - Arc
2003-10-27 22:17 ` Jay Estabrook
2003-10-27 13:08 Arkadiy Chapkis - Arc
2003-10-27  5:00 Arkadiy Chapkis - Arc
2003-10-27  7:36 ` Stefan Reinauer
2003-10-27 10:39 ` Ivan Kokshaysky
read-only archive

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